标签:info ret node nodejs func highlight nod userinfo var
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();
标签:info ret node nodejs func highlight nod userinfo var
原文地址:http://www.cnblogs.com/muamaker/p/6808244.html