比如这样的语句:
connection.query('INSERT INTO users SET ?',{username:'RITSU',firstname:'yan'},function(err,result){
//})
其中SET 与? 关键字什么意思?
还有所谓的用??来作为sql标识符使用参数又是何解?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
node-mysql的query有点扯。。建议你自己用占位符拼sql后,replace,不要去用它的??和?
一般来说,??代表table name和column name,?代表动态的值