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

[6760] Invalid timestamp - response (1) by dnoeth

$
0
0

The easiest way to write a Timestamp literal is TIMESTAMP 'yyyy-mm-dd hh:mi:ss':

WHERE col = TIMESTAMP '2012-11-14 16:24:18.071000'

If you really need to use a different format you must use a CAST plus FORMAT:

WHERE col = CAST('14/11/2012 16:24:18.071000' AS TIMESTAMP FORMAT 'dd/mm/yyyyBhh:mi:ss.s(6)')

 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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