หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
Databricks SQL
Databricks Runtime 18.3 and above
Returns the current time at the start of query evaluation. All calls of current_time within the same query return the same value.
Syntax
current_time( [ precision ] )
Arguments
precision: An optional INTEGER literal in the range0to6, indicating how many fractional digits of seconds to include. The default is6.
Returns
A TIME.
The parentheses are optional when no precision argument is given.
Examples
> SELECT current_time();
16:57:04.304361
> SELECT current_time;
16:57:04.304361
> SELECT current_time(0);
16:57:04
> SELECT current_time(3);
16:57:04.304