mongodb没有集合结构,直接JSON到数据库
db.collectionCreate("school");
db.school.insert({"teacher":20,“AGE”:67,"LOCATION":"BEIJING"});
db.school.find();
var book={
"aigo":"asd",
"num":60,
"avg“:30
}
db.school.insert(book);
mongodb没有集合结构,直接JSON到数据库
db.collectionCreate("school");
db.school.insert({"teacher":20,“AGE”:67,"LOCATION":"BEIJING"});
db.school.find();
var book={
"aigo":"asd",
"num":60,
"avg“:30
}
db.school.insert(book);