- Categories:
SYSTEM$TAG_ VALUE_ CONTAINS¶
Returns TRUE if the specified tag on the specified object or column contains the specified string value. Returns FALSE if the value is not present or the tag is not assigned to the object.
Use this function when a tag might have more than one value. SYSTEM$GET_TAG returns an error when multiple values exist. For more information, see Multi-value tags.
- See also:
Syntax¶
Arguments¶
'tag_name'The name of the tag as a string (the key in the key-value pair).
'object_name'The name of the object as a string. For a column, use
<table_name>.<column_name>.'object_domain'String that identifies the object domain, in the same sense as for SYSTEM$GET_TAG. Multi-value tags apply to tables, views, and columns, so you can typically pass one of the following values:
TABLEwhen the tag is on a table or view.COLUMNwhen the tag is on a column (use<table_name>.<column_name>forobject_namein that case).
For every domain string the API accepts, see the
object_domainargument on SYSTEM$GET_TAG.'value'The tag value to check for as a string.
Returns¶
Returns a BOOLEAN: TRUE if the value is assigned to the tag on the object, FALSE otherwise.
Usage notes¶
- Works with both single-value and multi-value tags.
- Unlike
SYSTEM$GET_TAG, does not error when multiple values exist. - Value comparison is case-sensitive.
- Requires privileges to run a DESCRIBE <object> operation on the object and USAGE on the database and schema where the tag exists.