获取刚刚插入表格的这条信息的自增ID
var conn=getConnection();
var msql="INSERT INTO " + table +" (" + fields + ") values (";
for(var i=0;i<values.length;i++) {
if(i>0) msql+=",";
msql+="?";
}
msql+=")";
console.log(msql);
conn.query(msql,values,callback);
var msql="SELECT LAST_INSERT_ID();"
conn.query(msql,values);
conn.end();