SYSTEM$SET_ROW_TIMESTAMP_ON_ALL_SUPPORTED_TABLES
functionsupportedTables, views, streams, sequencesUse 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
SELECT SYSTEM$SET_ROW_TIMESTAMP_ON_ALL_SUPPORTED_TABLES('<level>', '<qualified_name>')
- The first argument is level: one of :code:`schema`, :code:`database`, or :code:`account`.
- The second argument is the fully qualified name of the container.
Parameters
| Name | Required | Description |
|---|---|---|
'level' | required | Container level. Can be one of the following: account, database, schema. |
'qualified_name' | required | The fully qualified name of the container. For example, my_db.myschema for schema level. |