Skip to main content

INFORMATION.SCHEMA.VIEWTABLEUSAGE

persistent class INFORMATION.SCHEMA.VIEWTABLEUSAGE extends %Library.Persistent [ Final ]

SQL Table Name: INFORMATION_SCHEMA.VIEW_TABLE_USAGE

Returns one row for each table in the current namespace where the table is used by a view, and the current user has privileges for the table and view.

Property Inventory

Parameters

parameter READONLY = 1;
Inherited description: READONLY = 1 means that objects can be created, opened but not saved or deleted. Tables are projected to SQL as READONLY.

Properties

property TABLECATOLOG as %String (MAXLEN = 128) [ Calculated , SqlFieldName = TABLE_CATALOG ];
Table qualifier - always NULL in InterSystems IRIS.
Property methods: TABLECATOLOGCompute(), TABLECATOLOGDisplayToLogical(), TABLECATOLOGGet(), TABLECATOLOGIsValid(), TABLECATOLOGLogicalToDisplay(), TABLECATOLOGLogicalToOdbc(), TABLECATOLOGNormalize(), TABLECATOLOGSQLCompute()
property TABLENAME as %String (COLLATION = "Upper", MAXLEN = 128) [ SqlFieldName = TABLE_NAME , Required ];
Name of the table.
Property methods: TABLENAMEDisplayToLogical(), TABLENAMEGet(), TABLENAMEIsValid(), TABLENAMELogicalToDisplay(), TABLENAMELogicalToOdbc(), TABLENAMENormalize(), TABLENAMESet()
property TABLESCHEMA as %String (COLLATION = "Upper", MAXLEN = 128) [ SqlFieldName = TABLE_SCHEMA , Required ];
Name of schema that contains the table.
Property methods: TABLESCHEMADisplayToLogical(), TABLESCHEMAGet(), TABLESCHEMAIsValid(), TABLESCHEMALogicalToDisplay(), TABLESCHEMALogicalToOdbc(), TABLESCHEMANormalize(), TABLESCHEMASet()
property VIEWCATALOG as %String (MAXLEN = 128) [ Calculated , SqlFieldName = VIEW_CATALOG ];
View qualifier - always NULL in InterSystems IRIS.
Property methods: VIEWCATALOGCompute(), VIEWCATALOGDisplayToLogical(), VIEWCATALOGGet(), VIEWCATALOGIsValid(), VIEWCATALOGLogicalToDisplay(), VIEWCATALOGLogicalToOdbc(), VIEWCATALOGNormalize(), VIEWCATALOGSQLCompute()
property VIEWNAME as %String (COLLATION = "Upper", MAXLEN = 128) [ SqlFieldName = VIEW_NAME , Required ];
Name of the view.
Property methods: VIEWNAMEDisplayToLogical(), VIEWNAMEGet(), VIEWNAMEIsValid(), VIEWNAMELogicalToDisplay(), VIEWNAMELogicalToOdbc(), VIEWNAMENormalize(), VIEWNAMESet()
property VIEWSCHEMA as %String (COLLATION = "Upper", MAXLEN = 128) [ SqlFieldName = VIEW_SCHEMA , Required ];
Name of schema that contains the view.
Property methods: VIEWSCHEMADisplayToLogical(), VIEWSCHEMAGet(), VIEWSCHEMAIsValid(), VIEWSCHEMALogicalToDisplay(), VIEWSCHEMALogicalToOdbc(), VIEWSCHEMANormalize(), VIEWSCHEMASet()

Indexes

index (PKeyIndex on VIEWSCHEMA,VIEWNAME,TABLESCHEMA,TABLENAME) [PrimaryKey];
Index methods: PKeyIndexCheck(), PKeyIndexCheckUnique(), PKeyIndexDelete(), PKeyIndexExists(), PKeyIndexOpen(), PKeyIndexSQLCheckUnique(), PKeyIndexSQLExists(), PKeyIndexSQLFindPKeyByConstraint(), PKeyIndexSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: SQLStorage

Maps: 2

  • Map number 1 is named Master

    thismap.Global: ^rINDEXSQL

  • Map number 2 is named rxIndex

    thismap.Global: ^rINDEXSQL

  • ^rINDEXSQL("VIEW",{SchemaExact},{ViewExact},{TableExtent})
    =
    Node Delimiter Piece Name
    VIEW_SCHEMA
    ^rINDEXSQL("rv",$$UPPER({VIEW_SCHEMA}),$$UPPER({VIEW_NAME}),{TableExtent})
    =
    Node Delimiter Piece Name
    ViewExact
FeedbackOpens in a new tab