【发布时间】:2017-01-22 18:21:48
【问题描述】:
这是我使用的代码的一部分
var insertedData = {
name: 'testname',
score: '1337'
};
connect.query('INSERT INTO table SET ?', insertedData, function(error, result){
这是我得到的错误
{ [错误:ER_PARSE_ERROR:您的 SQL 语法有错误;查看 与您的 MySQL 服务器版本相对应的手册 在 'table SET
name= 'Hek',score= '12'' 附近使用的语法 1]代码:'ER_PARSE_ERROR',errno:1064,sqlState:'42000',索引:0 }
【问题讨论】: