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.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.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);