0
我在尝试从NodeJS对我的MySQL数据库执行SQL查询时收到此错误。这是我试图执行的查询:
db.query("insert into items(category,description,user_id) values($1,$2,$3);",
[req.body.category,req.body.description,req.body.user_id],function(error,results){
some follow-up code..
你使用哪种类MySQL连接的值传递得到取代? –
尝试使用'values(?,?,?);'代替。 https://github.com/mysqljs/mysql –