wood burning stoves
The moose likes JDBC and Relational Databases and the fly likes java.sql.SQLException-Need help to resolve. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "java.sql.SQLException-Need help to resolve." Watch "java.sql.SQLException-Need help to resolve." New topic

java.sql.SQLException-Need help to resolve.

Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
I am using mysql database.
I have loaded the temp table with user info from the registration screen. If the user is approved, i need to load the base table with the pre-loaded data from the temp table.
email-id is the username so i am doing the check against it.
But i am getting
java.sql.SQLException: 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 'where EMAIL_ADDRESS='anjan@gmail.com'' at line 1
DAO-Function to insert the data from temp table to base table.
Jan Cumps

Joined: Dec 20, 2006
Posts: 2565

Look at this part of your query: CUST_LAST_LOGINfrom

Regards, Jan

OCUP UML fundamental and ITIL foundation
I agree. Here's the link: http://aspose.com/file-tools
subject: java.sql.SQLException-Need help to resolve.
It's not a secret anymore!