I looked at this answer
I am looking to be able to insert rows from a previous select request into nodejs and use the same RowDataPacket and pass it to another insert request.
For example, the result of a previous call
[ RowDataPacket { user_id: 1024, session_id: 3, notification_id: 1 }, RowDataPacket { user_id: 1028, session_id: 3, notification_id: 2 } ] ]
after insertion
var sql = 'INSERT INTO user_session_notification(user_id, session_id, notification_id) VALUES ?' var values = [];
user689751 Sep 18 '16 at 21:52 2016-09-18 21:52
source share