{"Entry":{"collection":"sql","key":"drop-collation","name":"DROP COLLATION","aliases":["dropcollation"],"metadata":{"aliases":["dropcollation"],"changed_in":[],"changes":[{"from":"9.0","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":[],"removed":[]},"status":"added","synopsis":null,"to":"9.1"},{"from":"9.5","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["parameters"],"removed":[]},"status":"changed","synopsis":null,"to":"9.6"},{"from":"11","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["parameters"],"removed":[]},"status":"changed","synopsis":null,"to":"12"},{"from":"16","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["parameters"],"removed":[]},"status":"changed","synopsis":null,"to":"17"},{"from":"18","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["parameters"],"removed":[]},"status":"changed","synopsis":null,"to":"19"}],"content_hash":"b8656cff600f8285e92fbebe772ccbdadb3251e24ebda7d11c054d71970d4634","derived_content_hash":"2f30666370ebe0eef5776b2fd5225d079476a49b48e2a9e2009fbcf455711da1","editorial":{},"first_version":"9.1","group":"type","imported_at":"2026-09-30T17:43:37.412704+08:00","last_version":"20","name":"DROP COLLATION","object":"COLLATION","position":3004,"present_in":["9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"purpose":"remove a collation","purpose_zh":"","related":["alter-collation","create-collation"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:898bf0d352099ee549962fdc8c826f300ed767529b528374023d71628ce4d092","receipt_sha256":"cbe4d78bad6b2f1cba3053df85bdf0be5d0dd5513b1f15fc9d4f35733e1d5edd","repair":"wiki-repair-20261023"},"slug":"drop-collation","source_rev":"wiki-repair-20261023:58cea45d52788afa62361d422e8dbcb455137bc914c53587d7a20bfe5a814d37","synopsis":"DROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]","verb":"DROP"}},"Definition":{"Collection":"sql","Key":"drop-collation","SourceDatabase":"center","Version":"18","SourceTable":"sqlcmd","SourceKey":"drop-collation","SourceRevision":"wiki-repair-20261023:58cea45d52788afa62361d422e8dbcb455137bc914c53587d7a20bfe5a814d37","Facts":{"anchor":"SQL-DROPCOLLATION","description_zh":"删除一个排序规则","description_zh_html":"\u003cpre\u003eDROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]\u003c/pre\u003e\u003csection\u003e\u003ch2\u003e描述\u003c/h2\u003e\u003cp\u003e\n\u003ccode class=\"command\"\u003eDROP COLLATION\u003c/code\u003e 删除一个先前定义的排序规则。要删除一个排序规则，你必须拥有该排序规则。\n  \u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e参数\u003c/h2\u003e\u003cdiv class=\"variablelist\"\u003e\u003cdl class=\"variablelist\"\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eIF EXISTS\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e\n       如果该排序规则不存在，则不要抛出错误。这种情况下会发出一个提示。\n      \u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e\n       排序规则的名称。该名称可以使用模式限定。\n      \u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eCASCADE\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e\n       自动删除依赖于该排序规则的对象，以及进一步依赖于这些对象的所有对象（参见\u003ca class=\"xref\" href=\"/zh/docs/18/ddl-depend.html\" title=\"5.15. 依赖跟踪\"\u003e第 5.15 节\u003c/a\u003e）。\n      \u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eRESTRICT\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e\n       如果有任何对象依赖于该排序规则，则拒绝删除该排序规则。这是默认值。\n      \u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e示例\u003c/h2\u003e\u003cp\u003e\n   删除名为 \u003ccode class=\"literal\"\u003egerman\u003c/code\u003e 的排序规则：\n\u003c/p\u003e\u003cpre class=\"programlisting\"\u003e\nDROP COLLATION german;\n\u003c/pre\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e兼容性\u003c/h2\u003e\u003cp\u003e\n\u003ccode class=\"command\"\u003eDROP COLLATION\u003c/code\u003e 命令符合 \u003cacronym class=\"acronym\"\u003eSQL\u003c/acronym\u003e 标准，但 \u003ccode class=\"literal\"\u003eIF EXISTS\u003c/code\u003e 选项是 \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e 扩展。\n  \u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e另见\u003c/h2\u003e\u003cspan class=\"simplelist\"\u003e\u003ca class=\"xref\" href=\"/zh/docs/18/sql-altercollation.html\" title=\"ALTER COLLATION\"\u003e\u003cspan class=\"refentrytitle\"\u003eALTER COLLATION\u003c/span\u003e\u003c/a\u003e, \u003ca class=\"xref\" href=\"/zh/docs/18/sql-createcollation.html\" title=\"CREATE COLLATION\"\u003e\u003cspan class=\"refentrytitle\"\u003eCREATE COLLATION\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e\u003c/section\u003e","file":"sql-dropcollation.html","lang":"en","name":"DROP COLLATION","purpose":"remove a collation","purpose_zh":"删除一个排序规则","related":["alter-collation","create-collation"],"sections":[{"html":"\u003cp\u003e\u003ccode class=\"command\"\u003eDROP COLLATION\u003c/code\u003e removes a previously defined collation. To be able to drop a collation, you must own the collation.\u003c/p\u003e","key":"description","title":"Description"},{"html":"\u003cdiv class=\"variablelist\"\u003e\u003cdl class=\"variablelist\"\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eIF EXISTS\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eDo not throw an error if the collation does not exist. A notice is issued in this case.\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eThe name of the collation. The collation name can be schema-qualified.\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eCASCADE\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eAutomatically drop objects that depend on the collation, and in turn all objects that depend on those objects (see \u003ca href=\"/docs/18/ddl-depend.html\" title=\"5.15. Dependency Tracking\"\u003eSection 5.15\u003c/a\u003e).\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eRESTRICT\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eRefuse to drop the collation if any objects depend on it. This is the default.\u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e","key":"parameters","title":"Parameters"},{"html":"\u003cp\u003eTo drop the collation named \u003ccode class=\"literal\"\u003egerman\u003c/code\u003e:\u003c/p\u003e\u003cpre class=\"programlisting\"\u003eDROP COLLATION german;\n\u003c/pre\u003e","key":"examples","title":"Examples"},{"html":"\u003cp\u003eThe \u003ccode class=\"command\"\u003eDROP COLLATION\u003c/code\u003e command conforms to the \u003cacronym\u003eSQL\u003c/acronym\u003e standard, apart from the \u003ccode class=\"literal\"\u003eIF EXISTS\u003c/code\u003e option, which is a \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e extension.\u003c/p\u003e","key":"compatibility","title":"Compatibility"},{"html":"\u003cspan class=\"simplelist\"\u003e\u003ca href=\"/wiki/sql/alter-collation/?v=18\" title=\"ALTER COLLATION\"\u003e\u003cspan class=\"refentrytitle\"\u003eALTER COLLATION\u003c/span\u003e\u003c/a\u003e, \u003ca href=\"/wiki/sql/create-collation/?v=18\" title=\"CREATE COLLATION\"\u003e\u003cspan class=\"refentrytitle\"\u003eCREATE COLLATION\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e","key":"see_also","title":"See Also"}],"sections_same_as":"","slug":"18","synopsis_html":"DROP COLLATION [ IF EXISTS ] \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e [ CASCADE | RESTRICT ]","synopsis_text":"DROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]","translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/sql-dropcollation.html","sha256":"6e706e07658e8589f09fd34a55813204000fe1228ff34d58040fe93b21b18b12"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{},"MeasuredEvidence":{}},"Text":{"Collection":"sql","Key":"drop-collation","SourceDatabase":"center","Version":"18","Locale":"en","Title":"DROP COLLATION","Summary":"remove a collation","BodyHTML":"\u003cpre\u003eDROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]\u003c/pre\u003e\u003csection\u003e\u003ch2\u003eDescription\u003c/h2\u003e\u003cp\u003e\u003ccode\u003eDROP COLLATION\u003c/code\u003e removes a previously defined collation. To be able to drop a collation, you must own the collation.\u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003eParameters\u003c/h2\u003e\u003cdiv\u003e\u003cdl\u003e\u003cdt\u003e\u003cspan\u003e\u003ccode\u003eIF EXISTS\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eDo not throw an error if the collation does not exist. A notice is issued in this case.\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan\u003e\u003cem\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eThe name of the collation. The collation name can be schema-qualified.\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan\u003e\u003ccode\u003eCASCADE\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eAutomatically drop objects that depend on the collation, and in turn all objects that depend on those objects (see \u003ca href=\"/docs/18/ddl-depend.html\" rel=\"nofollow\"\u003eSection 5.15\u003c/a\u003e).\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan\u003e\u003ccode\u003eRESTRICT\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eRefuse to drop the collation if any objects depend on it. This is the default.\u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003eExamples\u003c/h2\u003e\u003cp\u003eTo drop the collation named \u003ccode\u003egerman\u003c/code\u003e:\u003c/p\u003e\u003cpre\u003eDROP COLLATION german;\n\u003c/pre\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003eCompatibility\u003c/h2\u003e\u003cp\u003eThe \u003ccode\u003eDROP COLLATION\u003c/code\u003e command conforms to the \u003cacronym\u003eSQL\u003c/acronym\u003e standard, apart from the \u003ccode\u003eIF EXISTS\u003c/code\u003e option, which is a \u003cspan\u003ePostgreSQL\u003c/span\u003e extension.\u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003eSee Also\u003c/h2\u003e\u003cspan\u003e\u003ca href=\"/wiki/sql/alter-collation/?v=18\" title=\"ALTER COLLATION\" rel=\"nofollow\"\u003e\u003cspan\u003eALTER COLLATION\u003c/span\u003e\u003c/a\u003e, \u003ca href=\"/wiki/sql/create-collation/?v=18\" title=\"CREATE COLLATION\" rel=\"nofollow\"\u003e\u003cspan\u003eCREATE COLLATION\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e\u003c/section\u003e","SourceRevision":"wiki-repair-20261023:58cea45d52788afa62361d422e8dbcb455137bc914c53587d7a20bfe5a814d37","ContentHash":"77b2e9d652900fdf6c3dcc927fa59f1b9bd0d4e0df318dc316211a06bc4dec78","Payload":{"related":["alter-collation","create-collation"],"sections":[{"html":"\u003cp\u003e\u003ccode class=\"command\"\u003eDROP COLLATION\u003c/code\u003e removes a previously defined collation. To be able to drop a collation, you must own the collation.\u003c/p\u003e","key":"description","title":"Description"},{"html":"\u003cdiv class=\"variablelist\"\u003e\u003cdl class=\"variablelist\"\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eIF EXISTS\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eDo not throw an error if the collation does not exist. A notice is issued in this case.\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eThe name of the collation. The collation name can be schema-qualified.\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eCASCADE\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eAutomatically drop objects that depend on the collation, and in turn all objects that depend on those objects (see \u003ca href=\"/docs/18/ddl-depend.html\" title=\"5.15. Dependency Tracking\"\u003eSection 5.15\u003c/a\u003e).\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eRESTRICT\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eRefuse to drop the collation if any objects depend on it. This is the default.\u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e","key":"parameters","title":"Parameters"},{"html":"\u003cp\u003eTo drop the collation named \u003ccode class=\"literal\"\u003egerman\u003c/code\u003e:\u003c/p\u003e\u003cpre class=\"programlisting\"\u003eDROP COLLATION german;\n\u003c/pre\u003e","key":"examples","title":"Examples"},{"html":"\u003cp\u003eThe \u003ccode class=\"command\"\u003eDROP COLLATION\u003c/code\u003e command conforms to the \u003cacronym\u003eSQL\u003c/acronym\u003e standard, apart from the \u003ccode class=\"literal\"\u003eIF EXISTS\u003c/code\u003e option, which is a \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e extension.\u003c/p\u003e","key":"compatibility","title":"Compatibility"},{"html":"\u003cspan class=\"simplelist\"\u003e\u003ca href=\"/wiki/sql/alter-collation/?v=18\" title=\"ALTER COLLATION\"\u003e\u003cspan class=\"refentrytitle\"\u003eALTER COLLATION\u003c/span\u003e\u003c/a\u003e, \u003ca href=\"/wiki/sql/create-collation/?v=18\" title=\"CREATE COLLATION\"\u003e\u003cspan class=\"refentrytitle\"\u003eCREATE COLLATION\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e","key":"see_also","title":"See Also"}],"sections_same_as":"","synopsis_html":"DROP COLLATION [ IF EXISTS ] \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e [ CASCADE | RESTRICT ]","synopsis_text":"DROP COLLATION [ IF EXISTS ] name [ CASCADE | RESTRICT ]"}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
