Enterprise only
Use a table tag to give an existing table version a name, such as release-1.
These SQL statements manage the same tags as the table SDK and REST API.
They require an Enterprise server with SQL table tag support.
Syntax
Branch scope
CREATE TAG and ALTER TAG resolve version numbers on the table’s main branch.
The SQL syntax has no branch selector. SHOW TAGS lists all tags for the table,
including tags associated with other branches; its branch column identifies
those tags. DROP TAG removes the named tag regardless of its branch.
Privileges
The caller needs access to the table’s database and namespace, plus the table privilege for the requested statement:Create a tag
Assumingevents already has version 42, name that version release-1:
ALTER TAG.
Move a tag
Point an existing tag at another version on the main branch:Drop a tag
Remove a tag when its name is no longer needed:CREATE TAG, ALTER TAG, and DROP TAG statements return one row
with operation, name, and status columns. name is the tag name, and
status is created, updated, or dropped, respectively.