SCHEMA_TAGS
Applies to: Databricks SQL
Databricks Runtime 13.3 LTS and above
Unity Catalog only.
INFORMATION_SCHEMA.SCHEMA_TAGS
contains the schema tagging metadata within the schema, or all schemas if owned by the SYSTEM catalog.
Information is displayed only for catalogs the user has permission to interact with.
This relation is an extension to the SQL Standard Information Schema.
Definition
The SCHEMA_TAGS
relation contains the following.
Name | Data type | Nullable | Description |
---|---|---|---|
CATALOG_NAME |
STRING |
No | The catalog name that a given tag applies to. |
SCHEMA_NAME |
STRING |
No | The schema that the tag applies to. |
TAG_NAME |
STRING |
No | The name of the tag. |
TAG_VALUE |
STRING |
No | The value of the tag. |
Constraints
The following constraint applies to the SCHEMA_TAGS
relation:
Class | Name | Column List | Description |
---|---|---|---|
Primary key | SCHEMA_TAGS_PK |
CATALOG_NAME , SCHEMA_NAME , TAG_NAME , TAG_VALUE |
Unique identifier for a schema tag. |
Foreign key | SCHEMA_TAGS_SCHEMATA_FK |
CATALOG_NAME , SCHEMA_NAME |
References SCHEMATA |
Foreign key | SCHEMA_TAGS_CATALOGS_FK |
CATALOG_NAME |
References CATALOGS |
Example
> SELECT catalog_name, schema_name, tag_name, tag_value
FROM information_schema.schema_tags;
Related
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για