Skip to main content

CREATE TAG Preview

Create a tag for a reference.

Syntax
CREATE TAG [ IF NOT EXISTS ] <tag_name>
[ AT { REF[ERENCE] | BRANCH | TAG | COMMIT } <refValue> ]
[ IN <catalog_name> ]

Parameters

{{< sql-section file="data/sql/tags.json" data="creatingATag" >}}

Examples

Create a tag
CREATE TAG myTag
Create a tag at the specified commit
CREATE TAG commitTag
AT COMMIT "c7a79c74adf76649e643354c34ed69abfee5a3b070ef68cbe782a072b0a418ba"
Create a tag at the specified branch in the specified catalog
CREATE TAG myTag
AT BRANCH myBranch
IN myCatalog