I have a MySQL table called Cars. The table Carshas three columns: id int auto increment, foo varchar(255), bar varchar(255).
I want to just update all the rows of the Cars table in a column barwith the same value from foo, if foonot null. Thus, both foo and bar will have the same value after the update, where foo is not null.
source
share