I have a table Table1
which has data like
-------------------------------
code value
-------------------------------
02 null
05 null
06 hi
02 hello
05 how
I want to update the same table as
-------------------------------
id value
-------------------------------
02 hello
05 how
06 hi
02 hello
05 how
I used the following query, but is not working:
update Table1 set value=value where id is null