This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 2491
    
    8

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.
 
Similar Threads
help in sql
java.sql.Timestamp to Oracle date
How to use httpsession with dao factory
Error with user defined object datatypes
publishing to a registry