创建数据库的时候需要加上multipleStatements: true,即
let connection = mysql.createConnection({
host:' ',
user:' ',
password:' ',
database:' ',
port: 3306,
multipleStatements: true
});
本文介绍了如何在创建MySQL连接时设置multipleStatements为true,以实现批量执行SQL语句的便捷性。
创建数据库的时候需要加上multipleStatements: true,即
let connection = mysql.createConnection({
host:' ',
user:' ',
password:' ',
database:' ',
port: 3306,
multipleStatements: true
});
3万+
2228
74
1564

被折叠的 条评论
为什么被折叠?