SYSTEM$LAST_CHANGE_COMMIT_TIME

functiondeferredQueries & DML

docs.snowflake.com ↗

System functions

Returns a token that can be used to detect whether a database table or view changed between two calls to the function. If the token returned by a call is different from the token returned by a separate call, then the table or view changed between the two calls, typically due to a DML operation (e.g. an INSERT). If the specified database object is a view, then at least one of the database objects referenced by the view changed.

Syntax

SYSTEM$LAST_CHANGE_COMMIT_TIME( '<object_name>'  )

Parameters

NameRequiredDescription
object_namerequiredSpecifies the table or view.

Returns

The data type of the returned value is NUMBER with a scale of 0.

Usage notes

Known gaps

Parts not fully supported, and recorded divergences from Snowflake.