摘要:
size可以获得指定数组长度的文档 db.user.find({"fruit":{"$size":3}},{"_id":0}){ "fruit" : [ "apple", "banana", "cherry" ] }{ "fruit" : [ "apple", "banana", "pear" ... 阅读全文
摘要:
利用all来查询所以满足的匹配项,已知数据库有这些数据 db.user.find({},{"_id":0}){ "fruit" : [ "apple", "banana", "cherry" ] }{ "fruit" : [ "apple", "banana", "pear" ] }{ "fr... 阅读全文
摘要:
not 是元条件句,可以用于任何条件之上,意为取反 阅读全文
摘要:
我们再添加一个游泳的人,并用$in查询游泳的人 db.user.find({"hobby":{"$in":["swimming"]}},{"_id":0}){ "hobby" : "swimming", "gender" : "female" }{ "hobby" : "swimming", ... 阅读全文
摘要:
$in可以查询一个键的多个值 举例,每个人有爱好,假定为一个,数据太多,咱们用第二个参数来过滤一下 db.user.find({},{"_id":0}){ "hobby" : "swimming", "gender" : "female" }{ "hobby" : "dancing", "ge... 阅读全文
摘要:
生成发票的关键sql语句 SELECT v1.FInterID,u1.FEntryID,v1.FHookStatus FROM ICStockBill v1 INNER JOIN ICStockBillEntry u1 ON v1.FInterID=u1.FInterID WHERE 1=1 ... 阅读全文