每当我尝试运行我的代码时,这都会显示列数不匹配错误。
values=[
[{id:12227722345,name:"dgssssdavgsgfv",pass:"cvhsssssadfvugod"}],
[{id:12,name:"ddd",pass:"cvh"}]
];
c.query('insert into Hash.asn(userid,username,password) values (?,?,?)',[values],function(err,rows)
{
if (err)
console.log(err);
c.query('commit');
console.log(rows);
});
错误:
{ [Error: Column count doesn't match value count at row 1] code: 1136 }