I have two arrays given like so...
idArray : [123, 456, 789]
theRowIdArray: ["2", "3", "4"]
Here the theRowIdArray
corresponds to the rows of my table in database. And the idArray
corresponds to values I have to update in a column in my table against the rows.
How can I merge these two arrays in a format that I can update the rows in my table. I feel this could be achieved using dictionaries..but not sure how...
I wanted something like this...
for (id, rowID) in myDataset { //Here `myDataset` will contain the elements of both arrays
Update myTable Set theIDColumn = id Where Row_Id = rowID //Here will be code to update DB
}