工具
客户端工具 NoSQLBooster for MongoDB
下载地址:https://nosqlbooster.com/downloads
连接MongoDB

常用操作
查询
可以打开SQL脚本执行窗口,如下图在runSQLQuery里可以写sql进行查询操作

1 2 3 4 5 6 7 8 9 10 11 12
| db.visitInfo.find({ 'visitDate': { '$gte': '2019-01-01 00:00:00' }, 'empiId': { '$ne': null, '$ne': '', } }) .projection({}) .sort({ _id: -1 }) .limit(100)
|
更新
1 2 3 4 5 6 7
| db.visitInfo.updateMany({ 'outhospSerialNo': '1696222' }, { $set: { 'idNumber': '330225198810260359' } });
|
删除
1 2 3
| db.visitInfo.remove({ 'outhospSerialNo': '1696222' })
|