mongodb $not
如下:field_name字段中不包含hello,并且不包含word的
db.collection_name.find({"$and": [{ field_name:{$not:/.*hello.*/}},{field_name:{$not: /.*word.*/}}]})
如下:field_name字段中不包含hello,并且不包含word的
db.collection_name.find({"$and": [{ field_name:{$not:/.*hello.*/}},{field_name:{$not: /.*word.*/}}]})
本文标题:mongodb多个$not查询
本文链接:https://www.haomeiwen.com/subject/sfztmctx.html
网友评论