MongoDB

mongo
mongo dbname
show dbs
use dbname
show collections
db.createCollection("collectionName")
db.collection.find()
db.collection.find({'id': '210228'})
db.collection.save({country:"England",GroupName:"D"})
db.collection.remove({})
db.collection.drop()
  • mongodb.txt
  • Last modified: 2019/06/02 17:54
  • by jdx