How to get a list of all updated records in knex / mysql
问题 Here's the query I'm working on: return knex('table') .returning('id') .where('boolean', false) .andWhere('fooID', foo.id) .update({ boolean : true }) .limit(num) .then(function(ids) { console.log('\nids'); console.log(ids); //outputs num ids now contains 3, which is the number of affected rows. Is there any way to get the ids of those 3 rows? I was under the impression .returning() did that, but it appears to not. 回答1: Mysql database doesn't support returning statement and it returns just