aspose file tools*
The moose likes JDBC 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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.sql.SQLException-Need help to resolve." Watch "java.sql.SQLException-Need help to resolve." New topic
Author

java.sql.SQLException-Need help to resolve.

Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
Hi,
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
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

Look at this part of your query: CUST_LAST_LOGINfrom

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
 
 
subject: java.sql.SQLException-Need help to resolve.