DROP CAST Examples | Teradata Vantage - 17.10 - DROP CAST Examples - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

Example: Dropping the Cast of a Geospatial UDT to a Geospatial UDT

The following example drops the cast of UDT circle to UDT ellipse.

     DROP CAST (circle AS ellipse);

Example: Dropping the Cast of a Geospatial UDT to a VARCHAR

The following example drops the cast of UDT circle to VARCHAR(32).

     DROP CAST (circle AS VARCHAR(32));

Example: Dropping the System-Generated Cast from Source Data Type to Distinct UDT

The following example drops the system-generated cast of DECIMAL to the UDT euro.

     DROP CAST (DECIMAL AS euro);

Example: Dropping the System-Generated Cast from Distinct UDT to Source Data Type

The following example drops the system-generated cast of UDT euro to DECIMAL.

     DROP CAST (euro AS DECIMAL);