Skip to main content

INFORMATION.SCHEMA.VIEWCOLUMNUSAGE

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

SQL Table Name: INFORMATION_SCHEMA.VIEW_COLUMN_USAGE

Returns one row for each table column that is used in a view where the view and view column can be accessed by the current user in the current namespace.

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 COLUMNNAME as %String (COLLATION = "Upper", MAXLEN = 128) [ SqlFieldName = COLUMN_NAME , Required ];
Name of the column.
Property methods: COLUMNNAMEDisplayToLogical(), COLUMNNAMEGet(), COLUMNNAMEIsValid(), COLUMNNAMELogicalToDisplay(), COLUMNNAMELogicalToOdbc(), COLUMNNAMENormalize(), COLUMNNAMESet()
property TABLECATALOG as %String (MAXLEN = 128) [ Calculated , SqlFieldName = TABLE_CATALOG ];
Table qualifier - always NULL in InterSystems IRIS
Property methods: TABLECATALOGCompute(), TABLECATALOGDisplayToLogical(), TABLECATALOGGet(), TABLECATALOGIsValid(), TABLECATALOGLogicalToDisplay(), TABLECATALOGLogicalToOdbc(), TABLECATALOGNormalize(), TABLECATALOGSQLCompute()
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()

Inherited Members

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: SQLStorage

Maps: 2

  • Map number 1 is named Master

    thismap.Global: ^oddSQL

  • Map number 2 is named rxIndex

    thismap.Global: ^rINDEXSQL

  • ^oddSQL({SchemaExact},{ViewExact},16,{ViewColumnName})
    =
    Node Delimiter Piece Name
    VIEW_SCHEMA
    1 TABLE_SCHEMA
    2 TABLE_NAME
    3 COLUMN_NAME
    ^rINDEXSQL("rv",$$UPPER({VIEW_SCHEMA}),$$UPPER({VIEW_NAME}),{ViewColumnName})
    =
    Node Delimiter Piece Name
    ViewExact
    1 TABLE_SCHEMA
    2 TABLE_NAME
    3 COLUMN_NAME
FeedbackOpens in a new tab