This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
Sheriff

Joined: Oct 14, 2005
Posts: 19692
    
  10

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
Marshal

Joined: May 26, 2003
Posts: 32312
    
213

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]
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
 
jQuery in Action, 3rd edition