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 TIMESTAMP error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-08, 10:55
zamjobid zamjobid is offline
Registered User
 
Join Date: Mar 2008
Posts: 1
Red face DB2 TIMESTAMP error

Hi All,

When I am trying to add cloumn in table with timestamp in DB2 I am getting error,

Could any one pls help me.

Here is the command which I am using...

db2 => alter table CEX_TEMP_SUBSCRIBER_MAX add X_PEND_EFF_END_DT timestamp 26
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "26" was found following "EFF_END_DT timestamp".
Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601

Regards,
ZameerAhamed
Reply With Quote
  #2 (permalink)  
Old 03-07-08, 12:25
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Let me repeat the message in other words: What's the 26 doing there?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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