Reputation: 6986
I am trying to run the following query,
UPDATE candidate_assets SET show = 1 WHERE show = 0;
to change all the rows (show) that are set to 0 to be equal to 1, the show column is just basic INT column, what am I doing wrong?
Upvotes: 1
Views: 82
Reputation: 879
Use qoutes for fields with names which are reserved in MySQL like "show":
UPDATE candidate_assets SET `show` = 1 WHERE `show` = 0;
Upvotes: 3