var  userAddSql = 'INSERT INTO userinfo(id,username,pwd) VALUES(0,?,?)';
var  userAddSql_Params = ['Wilson', 55];
//增 add
connection.query(userAddSql,userAddSql_Params,function (err, result) {
        if(err){
         console.log('[INSERT ERROR] - ',err.message);
         return;
        }       
       console.log('INSERT ID:',result);       
    
});
//关闭连接
connection.end();

  

相关文章:

  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-09-13
  • 2021-12-26
  • 2021-04-04
  • 2021-06-20
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2022-01-01
  • 2021-10-14
  • 2021-06-07
  • 2021-07-14
  • 2021-06-15
相关资源
相似解决方案