Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Is it possible to handle the date in format YYYY-MM-DD HH:MI:SS NNNNNN ? Please note there is no dot(.) in between - response (1) by chinna557

$
0
0

Directly as it is you cannot use this timestamp. it will through an error 'Invalid Timestamp'.
you have to supply timestamp with dot.
sel cast (trim(cast('YYYY-MM-DD HH:MI:SS NNNNNN' as varchar(19))) || '.' ||substr(trim(cast('YYYY-MM-DD HH:MI:SS NNNNNN' as varchar(26))),21) as timestamp)
It should work.
 
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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