共用方式為


current_date 功能

適用于:核取標示為是 Databricks SQL 檢查標示為是 Databricks Runtime

傳回查詢評估開始時的目前日期。

語法

current_date()

參數

此函式不接受任何引數。

返回

DATE。

大括弧是選擇性的。

例子

> SELECT current_date();
 2020-04-25
> SELECT current_date;
 2020-04-25