比较来自世界各地的卖家的域名和 IT 服务价格

'ER_PARSE_ERROR' 对比赛 mysql 插入多个值时

我正在尝试使用数据库中的多个值 node-mysql in node.
我的源代码


engine.files.forEach/function/file/ {
torrentpath = file.path.replace//&/g, "&"/.replace//>/g, ">"/.replace//
<div class="answer_text">
结果,我刚用过 mysql.escape/val/ 在查询内


[code]app.mysql.query/'INSERT INTO `files` /`torrentid`, `filename`, `filesize`/ VALUES '+app.mysql.escape/torrentFiles/, function/err, result/


EDIT

对此的纠正是为了添加 put
torrentFiles


[]

.


app.mysql.query/'INSERT INTO `files` /`torrentid`, `filename`, `filesize`/ VALUES ? ', [torrentFiles], function/err, result/


</div>
已邀请:

二哥

赞同来自:

结果,我刚用过 mysql.escape/val/ 在查询内


app.mysql.query/'INSERT INTO `files` /`torrentid`, `filename`, `filesize`/ VALUES '+app.mysql.escape/torrentFiles/, function/err, result/


EDIT

对此的纠正是为了添加 put
torrentFiles


[]

.


app.mysql.query/'INSERT INTO `files` /`torrentid`, `filename`, `filesize`/ VALUES ? ', [torrentFiles], function/err, result/

要回复问题请先登录注册