1.使用use命令切换数据库
>use book switched to db book
注意:book数据库可以不存在
2.在数据库中插入数据:
>db.towns.insert({name:"[......]
继续阅读。。。