- Categories:
System functions (System Control)
SYSTEM$SET_ROW_TIMESTAMP_ON_ALL_SUPPORTED_TABLES¶
Use this system function to bulk enable row timestamps on existing tables.
This function adds the row timestamp column to all existing eligible tables within the container and ensures newly created tables automatically have row timestamp enabled.
To successfully execute the function, you need MODIFY privileges on the container you’re invoking the function on.
After row timestamps are enabled, tables expose the METADATA$ROW_LAST_COMMIT_TIME column, which returns the timestamp when each row was last modified. This enables change tracking, incremental processing, and time-travel queries based on row modification time. For more information, see Use row timestamps to measure latency in your pipelines.
Syntax¶
Arguments¶
Required
'level'Container level. Can be one of the following:
account,database,schema.'qualified_name'The fully qualified name of the container. For example,
my_db.myschemafor schema level.
Examples¶
The following example demonstrates how to bulk-enable row timestamps for all supported tables within a specific schema using a system function. It also verifies that the feature is applied to existing tables and sets the schema-level default to ensure all future tables automatically include the METADATA$ROW_LAST_COMMIT_TIME column.