I have a mysql table.
I want to “cut and paste” a value from one column to another using php. like this:
mysql_query("UPDATE table1 SET a1=a2,a2='' WHERE colid=3 LIMIT 1");
Is it possible to do this with just a single statement as above?
Does the ordering of the elements used in “SET” part matter?
If this is not good, what is the most efficient way to do this?
From the docs: