I have a table tbl
|id|points|
 1   15
 2   35
 3   445
 4   42
Now if i have an array like
array (2=>10,3=>825,4=>48)
And i want to change the points so that the tbl looks like this.
|id|points|
 1   15
 2   10
 3   825
 4   48
I can change the values using multiple queries but can anyone show how to do this with one single query ?
 
     
    