TO_TERA_TIMESTAMP (Lakehouse v2)
Converte um valor VARCHAR num valor DATETIME de acordo com uma cadeia de formato Teradata.
Sintaxe de Analyze
Seção intitulada “Sintaxe de Analyze”func.to_tera_timestamp(<str>, <format>)Exemplos de Analyze
Seção intitulada “Exemplos de Analyze”func.to_tera_timestamp('20240615143000', 'YYYYMMDDHH24MISS')
┌───────────────────────┐│ '2024-06-15 14:30:00' │└───────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”TO_TERA_TIMESTAMP(<str>, <format>)Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT TO_TERA_TIMESTAMP('20240615143000', 'YYYYMMDDHH24MISS');
┌─────────────────────┐│ 2024-06-15 14:30:00 │└─────────────────────┘