Wednesday, 26 April 2017

Updating table depending on dynamic keys of object

Here myObject is an object and I want to update my table depending upon the number of keys myObject contains. The number of keys in myObject can be dynamic how do I update the table in that case?

var myObject ={
   x1 : 0,
   x2 :1
}

var stmt =""UPDATE tb_data SET x1 = ?, x2 = ?....xn =?";



via Aryan Kanwar

No comments:

Post a Comment