How to remove milliseconds from timestamp(6) / datetime in Teradata
Scenario : We are selecting from a table with a timestamp(6) data type.
Currently the data look like this: 03/10/2014 21:54:47.690000
Expected: 03/10/2014 21:54:47
Solution:
SELECT current_timestamp(6) AS ts,
ts (FORMAT 'MM/DD/YYYYbhh:mi:ss') (CHAR(19))
nVector
posted on 26 Aug 18Enjoy great content like this and a lot more !
Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds
Post Comment