Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

convert string to timestamp - response (1) by CarlosAL

$
0
0
Teradata supports timestamp up to 6 decimals, your timestamp is 9 decimals (!!). If you want to get a TS(0) you should try to get rid of the fractional digits:    BTEQ -- Enter your SQL request or BTEQ command: select cast('05-MAR-12 01.33.34 PM' as timestamp(0) format 'DD-MMM-YYbhh.mi.ssbT');  *** Query completed. One row found. One column returned.  *** Total elapsed time was 1 second. '05-MAR-12 01.33.34 PM' -----------------------   05-Mar-12 01.33.34 PM   HTH Cheers. Carlos.

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>