Hi Everyone,
I am a bit new to MYSQL as I am SQLServer. So I am trying to do a simple update query (for zen cart) and keeping getting an Error 1064 syntax error.
What does MYSQL not like about my code? and can someone explain why?
UPDATE zen_categories
SET zen_categories.categories_image = 'bolt.gif'
FROM zen_categories, zen_categories_description
Where zen_categories.categories_id = zen_categories.categories_id AND zen_categories_description.categories_name = 'bolts'
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 'FROM zen_categories, zen_categories_description
Where zen_categories.categorie' at line 3
Thanks Sue
I am a bit new to MYSQL as I am SQLServer. So I am trying to do a simple update query (for zen cart) and keeping getting an Error 1064 syntax error.
What does MYSQL not like about my code? and can someone explain why?
UPDATE zen_categories
SET zen_categories.categories_image = 'bolt.gif'
FROM zen_categories, zen_categories_description
Where zen_categories.categories_id = zen_categories.categories_id AND zen_categories_description.categories_name = 'bolts'
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 'FROM zen_categories, zen_categories_description
Where zen_categories.categorie' at line 3
Thanks Sue