wood burning stoves 2.0
The moose likes JDBC and Relational Databases and the fly likes Java mySql update statement 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 mySql update statement" Watch "Java mySql update statement" New topic

Java mySql update statement

Giuseppa Cefalu
Ranch Hand

Joined: Jul 15, 2011
Posts: 121

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

Joined: Oct 14, 2005
Posts: 19973

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
author & internet detective

Joined: May 26, 2003
Posts: 33102

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Java mySql update statement
It's not a secret anymore!