Help Center/ Data Warehouse Service/ Tool Guide/ DSC/ Teradata Syntax Migration/ Data Manipulation Language (DML)/ TIMESTAMP
Updated on 2025-04-10 GMT+08:00
TIMESTAMP
Input - TIMESTAMP with FORMAT
The FORMAT phrase sets the format for a specific TIME or TIMESTAMP column or value. A FORMAT phrase overrides the system format.
1 2 | SELECT 'StartDTTM' as a ,CURRENT_TIMESTAMP (FORMAT 'HH:MI:SSBMMMBDD,BYYYY'); |
Output
1 2 | SELECT 'StartDTTM' AS a ,TO_CHAR( CURRENT_TIMESTAMP ,'HH:MI:SS MON DD, YYYY' ) ; |
TIMESTAMP Typecasting
Input
1 | COALESCE( a.Snd_Tm ,TIMESTAMP '0001-01-01 00:00:00' ) |
Output
1 | COALESCE( a.Snd_Tm , CAST('0001-01-01 00:00:00' AS TIMESTAMP) ) |
Parent topic: Data Manipulation Language (DML)
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.