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

本站中文解释

视图

V$SQLFN_METADATA视图是用于存储SQL函数元数据的虚拟视图,它主要包括函数的参数名称、类型、及其它相关信息,该视图存於数据字典中。在Oracle中,可以使用该虚拟视图来查看内部实现SQL函数中使用的参数和类型,以便于进一步理解SQL函数的实现。

使用方法:

1. 获取特定SQL函数及其参数信息:

SELECT * FROM V$SQLFN_METADATA WHERE FN_NAME = ‘特定SQL函数名称’;

2. 获取特定类型SQL函数及其参数信息:

SELECT * FROM V$SQLFN_METADATA WHERE FN_TYPE = ‘特定SQL类型’;

官方英文解释

V$SQLFN_METADATA contains metadata about operators and built-in functions. Note that this view does not contain information about arguments because the number of arguments will be different for various functions. Information about arguments is contained in V$SQLFN_ARG_METADATA, which can be joined with V$SQLFN_METADATA to get information about any function and its arguments.
Column Datatype Description

FUNC_ID

NUMBER

Internal function identification number

NAME

VARCHAR2(128)

Name of the built-in function

MINARGS

NUMBER

Minimum number of arguments for the function

MAXARGS

NUMBER

Maximum number of arguments for the function

DATATYPE

VARCHAR2(8)

Return data type, which can take any Oracle data type values, data type family values, or ARG[n] data types

VERSION

VARCHAR2(12)

Minimum version of the database that has this function

ANALYTIC

VARCHAR2(3)

Indicates whether the function is an analytic function (YES) or not (NO)

AGGREGATE

VARCHAR2(3)

Indicates whether the function is an aggregate function (YES) or not (NO)

OFFLOADABLE

VARCHAR2(3)

Indicates whether execution of the function can be offloaded to the Oracle Exadata Storage Server (YES) or not (NO)

See Also: Oracle Exadata Storage Server Software documentation for more information

DISP_TYPE

VARCHAR2(13)

Function display type:

  • NORMAL

  • ARITHMETIC

  • PARENTHESIS

  • REL-OP

  • CASELIKE

  • NOPARENTHESIS

USAGE

VARCHAR2(128)

A text explanation of how to use this function. The text is based on the syntax diagram for the function in the Oracle Database SQL
Language Reference
.

DESCR

VARCHAR2(4000)

Description of the function

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

See Also:

“V$SQLFN_ARG_METADATA”


数据运维技术 » Oracle 视图 V$SQLFN_METADATA 官方解释,作用,如何使用详细说明