I have this :
ID ROW_A ROW_B
'62919' | '9430' | '40754'
I get it thanks to this query :
SELECT * FROM myTable
WHERE ROW_A != 0
I would like to update it, to put ROW_A’s value into ROW_B
So, is it possible to make the following treatment with one query ?
Now, I’m using this (but it’s wrong) :
UPDATE myTable SET ROW_B = ROW_A
WHERE ID IN(
SELECT * FROM myTable
WHERE ROW_A != 0)
No need for a subquery I’d think: