gpt4 book ai didi

mongodb - SyntaxError : Unexpected token ILLEGAL. 请帮我插入语法

转载 作者:IT老高 更新时间:2023-10-28 13:10:55 24 4
gpt4 key购买 nike

这是我的命令

db.tasks.insert({id : “0”, title : "task01”, description : "description", status : "1", assignorId : "7", assigneeId : “8", createdDate : “", startedDate : “", targetDate : “", completeDate : “", closedDate : “"})

MongoDB 告诉我语法有错误。
我做错了什么?

最佳答案

您正在使用大引号。只有简单的引号有效:

db.tasks.insert({id : "0", title : "task01", description : "description", status : "1", assignorId : "7", assigneeId : "8", createdDate : "", startedDate : "", targetDate : "", completeDate : "", closedDate : ""})

关于mongodb - SyntaxError : Unexpected token ILLEGAL. 请帮我插入语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27087773/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com