MySQL Forums
Forum List  »  Newbie

UPDATE doesn't work
Posted by: Fre Con
Date: April 16, 2008 06:34PM

UPDATE `mytablename`
SET date = `2008-04-17`, category = `food`, description = `bananas`, amount = `1`
WHERE index = `1`

I get the following error message: "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 'index = `1`' at line 3

I have checked the manual and googled around but with no luck. What's wrong with my syntax?

Thanks in advance!

Options: ReplyQuote

Written By
UPDATE doesn't work
April 16, 2008 06:34PM
April 16, 2008 06:39PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.