HomeMogDBMogDB StackUqbar
v3.1

Documentation:v3.1

Supported Versions:

Other Versions:

DROP CAST

Function

DROP CAST deletes a type conversion.

Precautions

DROP CAST deletes a previously defined type conversion.

To delete a type conversion, you must have a source or destination data type. This is the same permission as creating a type conversion.

Syntax

DropCast ::= DROP CAST [ IF EXISTS ] ( source_type AS target_type ) [ CASCADE | RESTRICT ]

Parameter Description

  • IF EXISTS

    Do not throw an error if the specified conversion does not exist. A notice is issued in this case.

  • source_type

    Source data type in the type conversion.

  • target_type

    Type of the target data in the type conversion.

  • CASCADE

    RESTRICT

    These keys have no effect because there is no dependency on type conversion.

Example

Delete the conversion from text to int.

DROP CAST (text AS int);

Compatibility

DROP CAST complies with the SQL standard.

Copyright © 2011-2024 www.enmotech.com All rights reserved.