Philographer

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()

댓글 로드 중…

트랙백을 확인할 수 있습니다

URL을 배껴둬서 트랙백을 보낼 수 있습니다