16.20 - SPECIFIC FUNCTION - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
specific_function_name
Specific function name for the external or SQL function to drop.
database_name
Name of the containing database for specific_function_name, if different from the current database.
user_name
Name of the containing user for specific_function_name, if different from the current user.

Example: Dropping an SQL Function

These examples drop an SQL function and a specific SQL function.

     DROP FUNCTION udf2 (INTEGER, INTEGER);
     DROP SPECIFIC FUNCTION specific_udf2;

Example: Dropping an External Function by Function Name or Specific Function Name

You can drop a function definition using either its function name or its specific function name. For example, consider the following function definition.

     CREATE FUNCTION Finger_Print_Match(VARBYTE(1000),
     VARBYTE(1000))
       RETURNS INTEGER
       SPECIFIC fpm1
       LANGUAGE C
       NO SQL
       PARAMETER STYLE TD_GENERAL
       EXTERNAL;

Either of the following DROP FUNCTION requests drops its definition, the first using its specific function name and the second using its function name.

     DROP SPECIFIC FUNCTION fpm1;
     DROP FUNCTION Finger_print_Match(VARBYTE, VARBYTE);