这是我的命令
db.tasks.insert({id : “0”, title : "task01”, description : "description", status : "1", assignorId : "7", assigneeId : “8", createdDate : “", startedDate : “", targetDate : “", completeDate : “", closedDate : “"})
MongoDB告诉我语法有错误 我做错了什么?
答案 0 :(得分:35)
你正在使用卷曲引号。只有简单的引号有效:
db.tasks.insert({id : "0", title : "task01", description : "description", status : "1", assignorId : "7", assigneeId : "8", createdDate : "", startedDate : "", targetDate : "", completeDate : "", closedDate : ""})