admin管理员组

文章数量:1531723

mongodb在执行

db.businesslog.insert({
... ... _id: ObjectId(7df78ad8902c),
... ... title: 'MongoDB Overview',
... ... description: 'MongoDB is no sql database'
... ... })

时报[thread1] SyntaxError: identifier starts immediately after numeric literal @(shell):2:14的错误
解决办法:
插入时不插入Id由数据库自动生成即可,如:去掉上述语句中的_id: ObjectId(7df78ad8902c)

本文标签: 时报数据MongoDB