差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
it:database:mongodb_command [2022-07-30 09:47] – [用户管理] goldentianyait:database:mongodb_command [2024-12-15 07:56] (当前版本) – [正则表达式] goldentianya
行 13: 行 13:
   - mongod --config /opt/homebrew/etc/mongod.conf --fork   - mongod --config /opt/homebrew/etc/mongod.conf --fork
   - brew services list   - brew services list
-  - /etc/mongod.conf+  - /opt/homebrew/etc/mongod.conf
  
 ===== 用户管理 ===== ===== 用户管理 =====
行 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.1659174462.txt.gz · 最后更改: 2022-07-30 09:47 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0