time only from timestamp
Posted: Mon Feb 02, 2015 9:04 pm
How do I extract just the time from a timestamp to end up with a value that would go into a time column? I tried
But I got the following error
I want to return just the value '12:00:00'.
Thanks!
Code: Select all
select TRUNC(TIMESTAMP '2012-02-12 12:00:00', 'HH:MI:SS');
Code: Select all
[Vertica][VJDBC](5026) ERROR: Timestamp units "HH:MI:SS" not recognized [SQL State=22023, DB Errorcode=5026]
Thanks!