差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
it:database:mongodb_command [2022-07-30 11:07] – [命令] goldentianyait:database:mongodb_command [2024-12-15 07:56] (当前版本) – [正则表达式] goldentianya
行 85: 行 85:
 db.stocks.find({name: {$in: [/3x/, /Trust/]}})          // 含有 ”3x“ 或者 ”Trust“ 字符串的 db.stocks.find({name: {$in: [/3x/, /Trust/]}})          // 含有 ”3x“ 或者 ”Trust“ 字符串的
 </code> </code>
 +
 +===== 其它查询 =====
 +
 +列举不同的证券代号
 +<code>
 +db.DataD.distinct("symbol", { symbol: /DTG/ })
 +</code>
 +
  
 {{tag>mongo database}} {{tag>mongo database}}
it/database/mongodb_command.1659179252.txt.gz · 最后更改: 2022-07-30 11:07 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0