Archives of the TeradataForum
Message Posted: Thu, 30 Sep 2004 @ 14:38:19 GMT
Subj: | | Timestamp(0) |
|
From: | | Howard Bradley |
This is probably very simple but so am I and hence I can't figure it out. I have a timestamp(6) column on a table but I don't want to display
the fractional part of the seconds when I do a select.
I was hoping I could just re cast it as timestamp(0) but I get error 7454 "date time field overflow". Is there a way of doing this without
having to cast to CHAR and subsequently substr
i.e I want to do something like
sel cast(current_timestamp as timestamp(0))
rather than do something like
sel substr(cast(current_timestamp as char(26)),1,19)
Thanks
|