File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 2516
    
  10

Look at this part of your query: CUST_LAST_LOGINfrom

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.sql.SQLException-Need help to resolve.