MySQL Forums
Forum List  »  Newbie

Re: I need a second pair of eyes
Posted by: Peter Brawley
Date: March 02, 2021 04:36PM

The syntax error is usually just before the text quoted in the error message.

You're missing a semi-colon after the closing VALUES() parenthesis.

Also ...

SELECT id=LAST_INSERT_ID();

... should elicit a syntax error. Do you mean this?

select last_insert_id() as newid;

Options: ReplyQuote


Subject
Written By
Posted
Re: I need a second pair of eyes
March 02, 2021 04:36PM


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.