Skip to main content

SHOW TAGS

Introduced or updated: v1.2.863

Lists tag definitions in the current tenant. You can also query tag definitions through the system.tags table.

See also: CREATE TAG, DROP TAG

Syntax

SHOW TAGS [ LIKE '<pattern>' | WHERE <expr> ] [ LIMIT <n> ]

Output Columns

ColumnDescription
nameTag name
allowed_valuesPermitted values list, or NULL if any value is allowed
commentTag description
created_onCreation timestamp

Examples

Show all tags:

SHOW TAGS;

Filter tags by name pattern:

SHOW TAGS LIKE 'env%';

Filter with a WHERE condition:

SHOW TAGS WHERE comment IS NOT NULL;

Limit results:

SHOW TAGS LIMIT 5;

Equivalent query using the system table:

SELECT * FROM system.tags;
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today