this might sound like a trivial question but i've looked everywhere. I have a table like this:
id var1
1
2 19353
there is no entry for var1 where id =1 and I want to copy the entry for var1 from the other row to that location so that i have
id var1
1 19353
2 19353
i've tried but was unsuccessful with:
update table set var1 = (select var1 from table where id=2) where id=1;
any advice? thanks!