Hi I'm trying to update a table with multiple values using one query. I'm able to update multilple columns however I want the columns to be updated ONLY if it's empty.
example pseudocode
UPDATE mytable SET value1='$value1', value2='$value2' WHERE phonenum='$phonenum' IF value1 !='' and value2 !=''.....
I've searched online but to no avail. is there a way to only have it update multiple fileds ONlY if nothing is in that field?