Updating multiple rows with node-mysql, NodeJS and Q
I am using node-mysql, node-js, and Q promises. I have successfully updated, deleted, and inserted single rows using the above. As well as inserted multiple rows in a single statement in my test case scenario. However, I need to update multiple rows with different values (batch mode) either in a single query or in a for loop. The information on how to use prepared statements in mysql2 (supposed to improve on node-mysql) is very sparse and there are no examples, although that should be the natural choice, together with promises to compensate for node-js asynchronous nature. In addition, I have