Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Wed Sep 08, 2004 5:22 pm Post subject:
Cappertan,
Quote:
Update_date is in timestamp format.
If your column is of timestamp format, then you can use simply use DATE function to get the date portion from the timestamp. A timestamp is a seven-part value (year, month, day, hour, minute, second, and microsecond) ie.CCYY-MM-DD-HH.MI.SS.NNNNNN ) The length of a TIMESTAMP column is 26 bytes.
So DATE(UPDATE_DATE) would just give the date.
Quote:
Parm-date comes from a file in which the date is in timestamp format.
If you are reading from a file, then why not take the first 10 bytes using reference modification or define the fields in such a way that you get only the date portion.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum