I want to update a specific column for all rows in a table in phpMyAdmin.
I use this:
UPDATE jk_m1_users SET group = '2' WHERE group = '1'
However I get this error message:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column1 = 2 WHERE column1 = 1' at line 2
groupis MySQL’s reserved word. Since you called your column like that, you now need to put backticks around it every time you use it.For a full list of reserved words follow this finely crafted link (choose your MySQL version from menu on the left for better accuracy)