NOW (Lakehouse v1)
Devolve a data e a hora atuais.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.now()Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”┌─────────────────────────────────────────────────────────┐│ func.current_timestamp() │ func.now() │├────────────────────────────┼────────────────────────────┤│ 2024-01-29 04:38:12.584359 │ 2024-01-29 04:38:12.584417 │└─────────────────────────────────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”NOW()Tipo de retorno
Seção intitulada “Tipo de retorno”TIMESTAMP
Aliases
Seção intitulada “Aliases”Exemplos SQL
Seção intitulada “Exemplos SQL”Este exemplo devolve a data e a hora atuais:
SELECT CURRENT_TIMESTAMP(), NOW();
┌─────────────────────────────────────────────────────────┐│ current_timestamp() │ now() │├────────────────────────────┼────────────────────────────┤│ 2024-01-29 04:38:12.584359 │ 2024-01-29 04:38:12.584417 │└─────────────────────────────────────────────────────────┘