CREATE/REPLACE CAST SQL Statement | Teradata Vantage - 17.05 - CREATE CAST and REPLACE CAST - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Advanced SQL Engine
Teradata Database
Release Number
January 2021
Content Type
Programming Reference
Publication ID
English (United States)

Creates or replaces a cast operation for a UDT.

ANSI Compliance

CREATE CAST is ANSI SQL:2011-compliant with extensions.

REPLACE CAST is a Teradata extension to the ANSI SQL:2011 standard.

Required Privileges

You must have either the UDTTYPE or UDTMETHOD privilege on the SYSUDTLIB database to create or replace a cast.

If you specify a cast_function, then you must also have the EXECUTE FUNCTION privilege on the UDF, and it must be contained within the SYSUDTLIB database.

Privileges Granted Automatically