Categories:

UDF (User-Defined Function) & Stored Procedure DDL

DESCRIBE FUNCTION

Describes the specified UDF, including the UDF signature (i.e. arguments), return value, language, and body (i.e. definition).

DESCRIBE can be abbreviated to DESC.

See also:

ALTER FUNCTION , CREATE FUNCTION , SHOW USER FUNCTIONS

Syntax

DESC[RIBE] FUNCTION <name> ( [ <arg_data_type> ] [ , ... ] )

Parameters

name

Specifies the identifier for the UDF to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

arg_data_type [ , ... ]

Specifies the data type of the argument(s), if any, for the UDF. The argument data types are necessary because UDFs support name overloading (i.e. two UDFs in the same schema can have the same name) and the argument data types are used to identify the UDF.

Usage Notes

  • To post-process the output of this command, you can use the RESULT_SCAN function, which treats the output as a table that can be queried.

Examples

DESC FUNCTION multiply(number, number);

-----------+----------------------------------+
 property  |              value               |
-----------+----------------------------------+
 signature | (a NUMBER(38,0), b NUMBER(38,0)) |
 returns   | NUMBER(38,0)                     |
 language  | SQL                              |
 body      | a * b                            |
-----------+----------------------------------+