Mongo备忘录
This article was original written by Jin Tian, welcome re-post, first come with https://jinfagang.github.io . but please keep this copyright info, thanks, any question could be asked via wechat:
jintianiloveu
Mongo的基本使用
shell命令
- db 或 show dbs: 这个命令显示所有数据库
- use test: 这个命令表示切换到test数据库,如果没有的话就新建一个数据库
- test.createCollection(“user”,
- test.insert({}): 插入一个记录