collection = table 
document = row

//경로
> --dbpath=경로
 
//connect
> cd bin
> mongodb 

//명령어
> show dbs;
> use egoing(DB명);
> show collections(테이블);
> db.x.insert({name:'aaa',age:30}); //x = collection (컬렉션이 없을경우 자동생성)
> var foo = {name:'bbb',age:29};
> db.x.insert(foo);
> db.x.find();    //select
> db.x.insert({test:'Hello World!'});
> db.x.find({test:'Hello World!'});    //where






 

'mongodb' 카테고리의 다른 글

mongolian  (0) 2012.03.16
버전확인  (0) 2012.03.16
설치  (0) 2012.03.16
명령어  (0) 2012.03.16
함수기능확인  (0) 2012.02.14

+ Recent posts