DB2 ESE v8.1.14.292 FP14, Win 2k3
I've searched the forums and havent found a post which "directly" addresses my question, maybe I can get some help.
I'm attempting to change a DATE column to a TIMESTAMP using the "alter table" gui in cc (which appears to use SYSPROC.ALTOBJ). I understand I can do this manually but I figured something so simple as changing a date to a timestamp is something this should handle, right?
Created a simple table, 2 columns: varchar(10), date
Added 1 row, values: 001, 2008-01-12
In the "Conversion expression (date to timestamp)" box I've tried:
TIMESTAMP(DATE_COLUMN,'00:00:00')
TIMESTAMP_ISO(DATE_COLUMN)
which both work successfully if I use them in a select, but on the LOAD portion of the alter I get status INVALID. When I check the temp table created by ALTOBJ the data is still stored as DATE, which is why I'm assuming it fails on the import. Is there some trick to getting the Conversion expression working for timestamps? Can anyone shed some light on this?
Thanks in advance.
-min