Postgresql 中文操作指南

DROP CONVERSION

DROP CONVERSION — 删除转换

DROP CONVERSION — remove a conversion

Synopsis

DROP CONVERSION [ IF EXISTS ] name [ CASCADE | RESTRICT ]

Description

DROP CONVERSION 删除先前定义的转换。要删除转换,你必须拥有该转换。

DROP CONVERSION removes a previously defined conversion. To be able to drop a conversion, you must own the conversion.

Parameters

  • IF EXISTS

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

  • name

    • The name of the conversion. The conversion name can be schema-qualified.

  • CASCADE__RESTRICT

    • These key words do not have any effect, since there are no dependencies on conversions.

Examples

删除名为 myname 的转换:

To drop the conversion named myname:

DROP CONVERSION myname;

Compatibility

SQL 标准中没有 DROP CONVERSION 语句,但是一个 DROP TRANSLATION 语句与 PostgreSQL 中的 CREATE CONVERSION 语句类似,并与 CREATE TRANSLATION 语句配合使用。

There is no DROP CONVERSION statement in the SQL standard, but a DROP TRANSLATION statement that goes along with the CREATE TRANSLATION statement that is similar to the CREATE CONVERSION statement in PostgreSQL.