共用方式為


getdate 函式

適用於:check marked yes Databricks SQL check marked yes Databricks Runtime

傳回查詢評估開始時的目前時間戳。

此函式與 current_timestamp()同義

語法

getdate()

引數

這個函數沒有引數。

傳回

TIMESTAMP

範例

> SELECT getdate();
 2020-04-25 15:49:11.914

> SELECT getdate();
 2020-04-25 15:49:11.914