—
NAME
DROP_CAST - remove a cast
SYNOPSIS
bash
DROP CAST [ IF EXISTS ] (\nsource_type\n AS \ntarget_type\n) [ CASCADE | RESTRICT ]DESCRIPTION
DROP CAST removes a previously defined cast.
To be able to drop a cast, you must own the source or the target data type. These are the same privileges that are required to create a cast.
PARAMETERS
IF EXISTS
source_type
target_type
CASCADE RESTRICT
EXAMPLES
To drop the cast from type text to type int:
bash
DROP CAST (text AS int);COMPATIBILITY
The DROP CAST command conforms to the SQL standard.
SEE ALSO
CREATE CAST (CREATE_CAST(7))