MySQL Forums
Forum List  »  Connector/JDBC and Java

Re: Can someone tell me what's wrong with my sql statement ?
Posted by: Filipe Silva
Date: July 25, 2017 10:05AM

Hi Karen,

Your query should be: "INSERT INTO project.tutor_subject (tutor_id) VALUES (" + generatedId + ")";

Mind the spaces around "VALUES" and the missing parenthesis around the values section.

IHTH

Options: ReplyQuote


Subject
Written By
Posted
Re: Can someone tell me what's wrong with my sql statement ?
July 25, 2017 10:05AM


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.