Add the instance method signature for the method named method_name to the definition of the UDT named UDT_name.
You cannot specify this option for an ARRAY or VARRAY type.
- INSTANCE
- The specification of INSTANCE is optional.
- CONSTRUCTOR
- Add the constructor method signature for the method named method_name to the definition of the UDT named UDT_name.
- SYSUDTLIB.
- The specification of SYSUDTLIB is optional.
- method name
- You must use the CREATE METHOD statement to create the body for method_name before you can invoke it. See CREATE METHOD. See SQL Fundamentals, B035-1141 for the rules for naming database objects.
- data_type
- The data type list for the method to be added.
- SYSUDTLIB. UDT_name
- The specification of SYSUDTLIB is optional.
- RETURNS data_type
- The list of the data types returned by method_name.
- RETURNS SYSUDTLIB.UDT_name
- The specification of SYSUDTLIB is optional.
- CAST FROM
- The result type returned by the method that is to be converted to the type specified by the RETURNS clause.
- data type
- Whenever a LOB that requires data type conversion is passed to a method, the LOB must first be materialized for the conversion to take place.
- SYSUDTLIB
- Optional containing database name, which is always SYSUDTLIB.
- UDT_name
- Name of the UDT.
- LANGUAGE
- The code for the language in which the external routine for method_name is written:
- PARAMETER STYLE
- The parameter passing style for method_name.
- DETERMINISTIC
- The method_name returns the same results for identical inputs.
- NOT DETERMINISTIC
- The method_name does not necessarily return the same results for identical inputs.
- NO SQL
- Specifies whether SQL language calls are permitted within the user-written external routine for method_name.