0
我刚刚开始学习Mongo DB,并想在我的数据库中插入一些数据。但我得到的错误:SyntaxError与Mongo命令
运行下面的代码给我错误蒙戈外壳:
document = ({ "Type" : "Book", "Title" : "Definitive Guide to MongoDB 2nd ed.,", "ISBN" : "978-1-4302-5821-6", "Publisher" : "Apress", "Author": ["Hows, David", "Plugge, Eelco", "Membrey, Peter", “Hawkins, Tim” ] })
E QUERY SyntaxError: Unexpected token ILLEGAL
能否请你帮我什么是这个代码的问题?
创建文档后,我想插入我的数据库使用命令。
db.media.insert(document)