NOW(Lakehouse v1)
返回当前日期和时间。
Analyze 语法
Section titled “Analyze 语法”func.now()Analyze 示例
Section titled “Analyze 示例”┌─────────────────────────────────────────────────────────┐│ func.current_timestamp() │ func.now() │├────────────────────────────┼────────────────────────────┤│ 2024-01-29 04:38:12.584359 │ 2024-01-29 04:38:12.584417 │└─────────────────────────────────────────────────────────┘SQL 语法
Section titled “SQL 语法”NOW()TIMESTAMP
SQL 示例
Section titled “SQL 示例”此示例返回当前日期和时间:
SELECT CURRENT_TIMESTAMP(), NOW();
┌─────────────────────────────────────────────────────────┐│ current_timestamp() │ now() │├────────────────────────────┼────────────────────────────┤│ 2024-01-29 04:38:12.584359 │ 2024-01-29 04:38:12.584417 │└─────────────────────────────────────────────────────────┘