We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2. db.movie.insert( { title: 'Forrest Gump', directed_by: 'Robert Zemeckis', stars: ['Tom Hanks', 'Robin Wright', 'Gary Sinise'], tags: ['drama', 'romance'], debut: new Date(1994,7,6,0,0), likes: 864367, dislikes: 30127, comments: [ { user:'user1', message: 'My first comment', dateCreated: new Date(2013,11,10,2,35), like: 0 }, { user:'user2', message: 'My first comment too!', dateCreated: new Date(2013,11,11,6,20), like: 0 } ] } )
3. db.movie.find( { $or: [ {'stars':'Robin Wright'}, {'stars':'Morgan Freeman'} ] }).pretty()
1. db.movie.findAndModify( { query:{'title':'Forrest Gump'}, update:{$inc:{likes:10}} } )
The text was updated successfully, but these errors were encountered:
花两块钱买的文章。。。
ObjectId 具有生成快、占用小、可排序和值唯一等特点,它的值由 12 个字节组成,其中前 4 个 字节描述的是创建的时间戳。ObjectId 的组成如下:
[Unix 纪元以来的秒数 4字节][随机值 5字节][计数器 3字节]
Sorry, something went wrong.
No branches or pull requests
为什么使用MongoDB
创建集合和删除集合(集合类似与table)
插入
查询
局部查询(find的第二个参数)
更新
删除
索引和排序
聚合
原子话
文本搜索
正则表达式
The text was updated successfully, but these errors were encountered: