DROP CAST
DROP CAST — удалить приведение типа
Синтаксис
DROP CAST [ IF EXISTS ] (исходный_типASцелевой_тип) [ CASCADE | RESTRICT ]
Описание
DROP CAST удаляет ранее определённое приведение типа.
Чтобы удалить приведение, необходимо быть владельцем исходного или целевого типа данных. Такие же требования действуют и при создании приведения.
Параметры
IF EXISTSНе считать ошибкой, если приведение не существует. В этом случае будет выдано замечание.
исходный_типИмя исходного типа данных для приведения.
целевой_типИмя целевого типа данных для приведения.
CASCADERESTRICTЭти ключевые слова игнорируются, так как от приведений не зависят никакие объекты.
Примеры
Удаление приведения типа text к типу int:
DROP CAST (text AS int);
Совместимость
Команда DROP CAST соответствует стандарту SQL.
См. также
CREATE CASTDROP CAST
DROP CAST — remove a cast
Synopsis
DROP CAST [ IF EXISTS ] (source_typeAStarget_type) [ 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 EXISTSDo not throw an error if the cast does not exist. A notice is issued in this case.
source_typeThe name of the source data type of the cast.
target_typeThe name of the target data type of the cast.
CASCADERESTRICTThese key words do not have any effect, since there are no dependencies on casts.
Examples
To drop the cast from type text to type int:
DROP CAST (text AS int);
Compatibility
The DROP CAST command conforms to the SQL standard.