15.10 - SPECIFIC FUNCTION - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

The specific function name of the function is to be renamed.

specific_function_name
Existing specific function name to be changed.
You cannot rename a table operator function, that is, a function with a parameter style of SQLTABLE. For more information, see “Table Operators” in "Chapter 1 C/C++ User-Defined Functions" and "Chapter 4 Java User-Defined Functions" of SQL External Routine Programming, B035-1147.
If the UDF library for your database contains any objects with multibyte characters in their name, you cannot use a single-byte session character set to create a new UDF, UDT, method, or Java stored procedure object even if the new object name contains only single-byte characters. Otherwise, Teradata Database returns an error to the requestor. Instead, use a multibyte session character set.

If you specify specific_function_name, then you must also specify new_specific_function_name, not new_function_name.

database_name
user_name
Containing database or user for specific_function_name if something other than the current database or user.
For information about naming database objects, see SQL Fundamentals, B035-1141.
new_specific_function_name
New specific function name for the function.
You cannot rename a table operator function. For more information, see “Table Operators” in "Chapter 1 C/C++ User-Defined Functions" and "Chapter 4 Java User-Defined Functions" of SQL External Routine Programming, B035-1147.

Example 1: Renaming the Specific Name for a Function

This example renames the specific name for a function.

     RENAME SPECIFIC FUNCTION match_text TO scan_text;