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 > Date and Time Concatenation

LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Registered User
Join Date: Apr 2005
Location: USA
Posts: 130
Date and Time Concatenation

I have a table that have two columns to store date and time. Date column defined as Date data type where as Time column defined as CHAR(4). We would like to alter the table for an additional column with TIMESTAMP data type. The data to the new column should be populated from exisitng date and time columns. Is there any way Can I do using SQL to poulate the data into this column.

Reply With Quote
  #2 (permalink)  
Registered User
Join Date: Feb 2008
Location: Japan
Posts: 3,437
TIMESTAMP function accept "valid string representation of a time" for the second argument,
if the first argument was a DATE or a valid string representation of a date.

See Information Center.
TIMESTAMP - IBM DB2 9.7 for Linux, UNIX, and Windows
Reply With Quote

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