Gunakan pernyataan kasus...
Update tbl
set points = CASE
WHEN ID = 1 then 05
when ID = 2 then 10
when ID = 3 then 825
when ID = 4 then 48 END
Biola yang berfungsi:http://sqlfiddle.com/#!9/6cb0d/1/ 0
Gunakan pernyataan kasus...
Update tbl
set points = CASE
WHEN ID = 1 then 05
when ID = 2 then 10
when ID = 3 then 825
when ID = 4 then 48 END
Biola yang berfungsi:http://sqlfiddle.com/#!9/6cb0d/1/ 0