Using mysql end nodejs , how can I get the entire updated rows ?
var query2 = connection.query('UPDATE campaigns SET USED=0 where amount=?' , [amount], function (error, results, fields) {
console.log(query2.sql);
if (error) throw error;
// Get here all updated rows
}
With affectedRows, I can get only the number of updated rows.