mongodb
db서버 실행: mongod
console실행: mongo
db전환
use presidents
CRUD
Create
db.people.insert({name:’george h bush’))
Read
db.people.find({name: {$regex: 'Bill'}})
db.people.findOne({name: {$regex: 'Bill'}})
db.people.find().limit(2)
Update
Attribute : upset, multi, writeConcern
Delete
dp.people.remove({name: {$regex: ‘Bush$’}}, {justOne: true})
컬렉션 삭제 drop
db.people.drop()
컬렉션 보기
show collections;
데이터베이스 삭제
db.dropDatabase()