Pooling connections
connection.end() 改 connection.release();
Calling conn.end() to release a pooled connection is deprecated. In next version
calling conn.end() will be restored to default conn.end() behavior. Use conn.re
lease() instead.
https://github.com/felixge/node-mysql
mysql.execSql('SELECT field FROM '+config.dbtable.table+' WHERE id=?',[taskId], function (err, rows){ if(err){ console.log(err); } console.log(rows[0].field); });
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。