RENAME FUNCTION SQL Statement (External) | Teradata Vantage - RENAME FUNCTION (External Form) - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Renames either the overloaded calling function name or specific function name for an external function.

ANSI Compliance

This statement is a Teradata extension to the ANSI SQL:2011 standard.

Other SQL dialects support similar non-ANSI standard statements with names such as RENAME.

Required Privileges

You must have both of the following privileges to rename an external UDF.

  • DROP FUNCTION on the external UDF or its containing database.
  • CREATE FUNCTION on the database that contains the external UDF.

If the function is a row-level security UDF, you must also have the CONSTRAINT DEFINITION privilege to execute RENAME FUNCTION.

Before renaming a row-level security UDF, you must use ALTER CONSTRAINT to drop or replace the UDF in any CONSTRAINT objects that specify the UDF.