'ER_PARSE_ERROR' 对比赛 mysql 插入多个值时
我正在尝试使用数据库中的多个值 node-mysql in node.
我的源代码
EDIT
对此的纠正是为了添加 put
在
.
</div>
我的源代码
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>
没有找到相关结果
已邀请:
1 个回复
二哥
赞同来自:
EDIT
对此的纠正是为了添加 put
在
[]
.
app.mysql.query/'INSERT INTO `files` /`torrentid`, `filename`, `filesize`/ VALUES ? ', [torrentFiles], function/err, result/