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