mongoDB 常用函数
摘要:
use mock # 切换数据库 show collection # 列出所有的表 db.orders.findOne() # 查询orders表中第一个 db.fruit.insertOne({name:"apple"}) # fruit表中插入一个水果 # 结果:插入成功,并成功添加一个默认主键 阅读全文
posted @ 2021-03-09 10:15 Sweet小马 阅读(593) 评论(0) 推荐(0)
posted @ 2021-03-09 10:15 Sweet小马 阅读(593) 评论(0) 推荐(0)