If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Db2 Update command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-05, 04:07
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Db2 Update command

System: Db2 UDB 7.2 on AIX 4.2
Application: J2EE (WAS 4.X)

While firing one UPDATE statement through a Java application, our developers are getting the following error message. The first character of the SQL statement is automatically truncated.


[IBM][CLI Driver][DB2/6000] SQL0104N An unexpected token "PDATE" was found following " ". Expected
tokens may include: "UPDATE". SQLSTATE=42601

Where as in the query it is already "UPDATE TABLE .... ".

Please suggest.

Thanks,
J
Reply With Quote
  #2 (permalink)  
Old 11-18-05, 05:47
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,279
This is a typical typo error message. Try to figure out what the exact SQL script was that is send to DB2. Try to send it to DB2 from within Command Center until it works.
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On