Hik*_*ndo 14 mongodb mongodb-query
这是我的命令
db.tasks.insert({id : “0”, title : "task01”, description : "description", status : "1", assignorId : "7", assigneeId : “8", createdDate : “", startedDate : “", targetDate : “", completeDate : “", closedDate : “"})
Run Code Online (Sandbox Code Playgroud)
MongoDB告诉我语法有错误.
我做错了什么?
Sci*_*ter 36
你正在使用卷曲引号.只有简单的引号有效:
db.tasks.insert({id : "0", title : "task01", description : "description", status : "1", assignorId : "7", assigneeId : "8", createdDate : "", startedDate : "", targetDate : "", completeDate : "", closedDate : ""})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19663 次 |
| 最近记录: |