Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Feb 07, 2025
Send us feedback
monotonically_increasing_id
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
uuid function