19 Jun 18 · dan-irving · #teradata ·   Bookmark   ×

Passing Timestamp in where clause in Teradata

There's only one recommended way to write a TIMESTAMP, using a Standard SQL literal, the keyword TIMESTAMP' followed by a string with 'YYYY-MM-DD HH:MI:SS' format:

Where SCAN_TIME > TIMESTAMP '2015-01-01 13:11:00'

Similar literals exist for date & time:

DATE '2015-01-01'
TIME '13:11:00'


posted on 19 Jun 18

Enjoy 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