monotonically_increasing_id
function
Applies to: Databricks SQL
Databricks Runtime
Returns monotonically increasing 64-bit integers.
monotonically_increasing_id()
This function takes no arguments.
A BIGINT.
The generated ID is guaranteed to be monotonically increasing and unique, but not consecutive.
> SELECT monotonically_increasing_id();
0