DROP CAST Examples | Teradata Vantage - DROP CAST Examples - 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™

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);