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

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

wcf binding - How to create a wsdl file for a WCF service library? -