Answers for "one column value should in another table column in mysql php"

SQL
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 "one column value should in another table column in mysql php"

Code answers related to "SQL"

Browse Popular Code Answers by Language