db.getCollection("Tags").find().limit(100);
db.getCollection("Tags").find().count();
--like 查询
db.getCollection("Tags").find({"Tag":{$regex:/htm1/}})
db.getCollection("queue").find({_id: ObjectId("6541f534c134a2616c0298da")});
db.getCollection("tracked").find({_id: ObjectId("6541f638c134a2616c0298db")});
db.getCollection("queue").find().count();
db.getCollection("queue").find().sort({"createTime":-1}).limit(100);
--like 查询
db.getCollection("queue").find({"assign":{$regex:"718hook"}}).limit(100);
db.getCollection("queue").find({"trackNums":{$in:[
"92001903380938366644409238",
"9214490289191406537660"
]}});
db.getCollection("tracked").find({"trackNums":{$in:[
"92001903380938366644409238",
"9214490289191406537660"
]}});
db.getCollection("queue").insert( {
_id: ObjectId("647eea2329e6d32b6bee5c81"),
count: NumberInt("0"),
createTime: "2023-06-06 16:11:15"
} );
标签:Tags,MongoDb,db,getCollection,查询,queue,id,find From: https://www.cnblogs.com/chxl800/p/17850009.html