Update MySQL query throwing syntax error -


trying update mysql employee table group column if contains word staff changes contents of column 4. doing wrong?

update employee set group = "4" group "staff"; 

group reserved word. quote backticks:

update employee set `group` = "4" `group` "staff"; 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -