felixge/node-mysql — Issue #154: addition to faq -- affectedRows
Author: mjbaldwin
Created: 2011-12-15 16:40:04+00:00
State: open

Thought it might be a good addition to the FAQ:

-----

How can I retrieve the number of rows inserted after an INSERT query?

client.query('INSERT INTO my_table SET title = ?', function(err, info) {
console.log(info.affectedRows);
});