Answers for "mysql copy one column to another table"

SQL
2

copy all values of a column to another column in sql in same table

UPDATE table SET columnB = columnA;
Posted by: Guest on January-04-2021
0

mysql update table from another table

UPDATE tableB
INNER JOIN tableA ON tableB.name = tableA.name
SET tableB.value = IF(tableA.value > 0, tableA.value, tableB.value)
WHERE tableA.name = 'Joe'
Posted by: Guest on December-15-2020

Code answers related to "mysql copy one column to another table"

Code answers related to "SQL"

Browse Popular Code Answers by Language