I am using MySQL (phpmyadmin) for my database. I want to change the value in a field depending on another's field info.
My table would be "info" and my column1 store_number, column2 store_name and column3 state, so if in field store_name there is a character string like Store number 3, then change column1 value to 3.
I tried
UPDATE info
IF store_name LIKE "%store number 3 %"
SET store_number = '3'
WHERE state LIKE "%california%"
I want to change the store number in all stores in california depending in the store name.