CREATE/REPLACE FUNCTION SQL Statement | Teradata Vantage - CREATE FUNCTION and REPLACE FUNCTION (Table Form) - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Creates a table function definition.

Required Privileges

You must have explicit CREATE FUNCTION privileges on the database in which the table function is to be contained to perform the CREATE FUNCTION statement.

The system does not grant the CREATE FUNCTION privilege automatically when you create a database or user: you must grant that privilege explicitly.

CREATE FUNCTION is not granted implicitly on the databases and functions owned by a database or user unless the owner also has an explicit WITH GRANT OPTION privilege defined for itself.

Privileges Granted Automatically

The following privileges are granted automatically to the creator of a table function:
  • DROP FUNCTION
  • EXECUTE FUNCTION