您的位置:首页 > 数据库 > Mongodb

mongodb

2013-04-02 15:14 113 查看
update

'$set': {
"options":{
"A":"choice A stands for",
"B":"choice B stands for",
"C":"choice C stands for",
"D":"choice D stands for",
}
}

find

$and:[{html:/答案/},{html:/回复/}]
$or:[{html:/答案/},{title:/测试/}]

find
words
contains both elements "text" and "here" or either of them:

db.things.find( { words: { $all: [ "text", "here" ] } } );

or

db.things.find( { words: { $in: [ "text", "here" ] } } );
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: