📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

Tag



Tags let you attach key-value metadata to TiDB Cloud Lake objects for data governance, classification, and compliance tracking. You can define tags with optional allowed values, assign them to objects, and query tag assignments through the TAG_REFERENCES table function.

Tag Management

CommandDescription
CREATE TAGCreates a new tag with optional allowed values and comment
DROP TAGRemoves a tag (must have no active references)
SHOW TAGSLists tag definitions

Tag Assignment

CommandDescription
SET TAG / UNSET TAGAssigns or removes tags on database objects
TAG_REFERENCESQueries tag assignments on a specific object

Was this page helpful?