This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes Java mySql update statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java mySql update statement" Watch "Java mySql update statement" New topic
Author

Java mySql update statement

Giuseppa Cefalu
Ranch Hand

Joined: Jul 15, 2011
Posts: 121
Hi,

I get the following error in my code: SQL Error! Can not perform SQL update. 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 UPDATEDEMSET......
This is the updateLine[y]. What am I doing wrong? Thank you.



Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The very first thing you should do when you are told there is an error in your SQL is to look at that SQL.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30392
    
150

Also look at the whitespace (or lack thereof) in your query.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java mySql update statement