编程语言


Oracle 视图 ALL_XML_VIEW_COLS 官方解释,作用,如何使用详细说明

网络编程 Oracle 视图 ALL_XML_VIEW_COLS 官方解释,作用,如何使用详细说明 10-15

本站中文解释

Oracle视图ALL_XML_VIEW_COLS可以用来查看存有XML类型数据的列。它包括了当前用户所有可见库、用户定义类型,以及其它用户拥有的视图中被识别为XML类型的列。

主要列包括
OWNER:列所属的用户名或模式。
VIEW_NAME:具有XML类型列的视图名称。
COLUMN_NAME:XML类型列名称。
DATA_TYPE:XML列数据类型。

利用ALL_XML_VIEW_COLS视图,可以查询特定的用户是否存有具体的XML列以及XML列的数据类型。我们可以使用以下语句查看模式hr中所有XML类型列:

SELECT OWNER, VIEW_NAME, COLUMN_NAME, DATA_TYPE
FROM ALL_XML_VIEW_COLS
WHERE OWNER=’HR’;

这个视图可以帮助我们更方便地检索存储XML类型数据列,避免数据落地到普通表中,这样做可以加快搜索速度。

官方英文解释

ALL_XML_VIEW_COLS describes the columns of the XML views accessible to the current user.

Related Views

  • DBA_XML_VIEW_COLS describes the columns of all XML views in the database.

  • USER_XML_VIEW_COLS describes the columns of the XML views owned by the current user. This view does not display the OWNER column.

ColumnDatatypeNULLDescription

OWNER

VARCHAR2(128)

Owner of the XML view

VIEW_NAME

VARCHAR2(128)

Name of the XML view

COLUMN_NAME

VARCHAR2(4000)

Name of the XML view column

XMLSCHEMA

VARCHAR2(700)

Name of the XML Schema that is used for the view definition

SCHEMA_OWNER

VARCHAR2(128)

Owner of the XML Schema that is used for the view definition

ELEMENT_NAME

VARCHAR2(2000)

Name of the XML SChema element that is used for the view

See Also:

  • “DBA_XML_VIEW_COLS”

  • “USER_XML_VIEW_COLS”


编辑:编程语言

标签:视图,类型,用户,数据,数据类型