{"Entry":{"collection":"sql","key":"drop-user","name":"DROP USER","aliases":["dropuser"],"metadata":{"aliases":["dropuser"],"changed_in":["6.5","8.1","8.2"],"changes":[{"from":"6.4","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":[],"removed":[]},"status":"changed","synopsis":{"added":["DROP USER name"],"removed":["DROP USER username"]},"to":"6.5"},{"from":"6.5","purpose_changed":true,"renamed":null,"sections":{"added":[],"changed":["description","usage"],"removed":[]},"status":"changed","synopsis":null,"to":"7.0"},{"from":"7.0","purpose_changed":false,"renamed":{"from_file":"sql-dropuser.htm","to_file":"sql-dropuser.html"},"sections":{"added":[],"changed":[],"removed":[]},"status":"changed","synopsis":null,"to":"7.1"},{"from":"7.1","purpose_changed":true,"renamed":null,"sections":{"added":[],"changed":["description"],"removed":[]},"status":"changed","synopsis":null,"to":"7.2"},{"from":"7.2","purpose_changed":false,"renamed":null,"sections":{"added":["diagnostics","notes","examples","see_also"],"changed":["description","compatibility"],"removed":["usage"]},"status":"changed","synopsis":null,"to":"7.3"},{"from":"7.3","purpose_changed":false,"renamed":null,"sections":{"added":["parameters"],"changed":["description","notes","see_also"],"removed":["diagnostics"]},"status":"changed","synopsis":null,"to":"7.4"},{"from":"7.4","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["notes"],"removed":[]},"status":"changed","synopsis":null,"to":"8.0"},{"from":"8.0","purpose_changed":true,"renamed":null,"sections":{"added":[],"changed":["description","see_also"],"removed":["parameters","notes","examples"]},"status":"changed","synopsis":{"added":["DROP USER name [, ...]"],"removed":[]},"to":"8.1"},{"from":"8.1","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["description"],"removed":[]},"status":"changed","synopsis":{"added":["DROP USER [ IF EXISTS ] name [, ...]"],"removed":[]},"to":"8.2"},{"from":"9.0","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["description"],"removed":[]},"status":"changed","synopsis":null,"to":"9.1"}],"content_hash":"f0097647f8edb40c2051d21a6a1468e02d6767c8e621f5353e65c707ff66fa3d","derived_content_hash":"b4825fcb7f3e6166dee77d1a3b788947947f3ca7d1f382a73f69520a6480aae4","editorial":{},"first_version":"6.4","group":"role","imported_at":"2026-09-30T17:43:38.308288+08:00","last_version":"20","name":"DROP USER","object":"USER","position":5019,"present_in":["6.4","6.5","7.0","7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","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 database role","purpose_zh":"","related":["drop-role"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:9fb3754cc46a66d8a2040a9f05a8438b16be59ccce9e755ae1d5bfc7e9cb0fa5","receipt_sha256":"1213d624dd3237f4a144f1e8e33d2e110796f39495ee7c97a4c23b289f294d07","repair":"wiki-repair-20261023"},"slug":"drop-user","source_rev":"wiki-repair-20261023:3f13c40cf053e6253043b26dbfbfcacb8c0ae77ffd0ac9794440052cb409b722","synopsis":"DROP USER [ IF EXISTS ] name [, ...]","verb":"DROP"}},"Definition":{"Collection":"sql","Key":"drop-user","SourceDatabase":"center","Version":"18","SourceTable":"sqlcmd","SourceKey":"drop-user","SourceRevision":"wiki-repair-20261023:3f13c40cf053e6253043b26dbfbfcacb8c0ae77ffd0ac9794440052cb409b722","Facts":{"anchor":"SQL-DROPUSER","description_zh":"移除一个数据库角色","description_zh_html":"\u003cpre\u003eDROP USER [ IF EXISTS ] name [, ...]\u003c/pre\u003e\u003csection\u003e\u003ch2\u003e描述\u003c/h2\u003e\u003cp\u003e\n\u003ccode class=\"command\"\u003eDROP USER\u003c/code\u003e 只是\n   \u003ca class=\"link\" href=\"/zh/docs/18/sql-droprole.html\" title=\"DROP ROLE\"\u003e\u003ccode class=\"command\"\u003eDROP ROLE\u003c/code\u003e\u003c/a\u003e 的另一种拼写。\n  \u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e兼容性\u003c/h2\u003e\u003cp\u003e\n\u003ccode class=\"command\"\u003eDROP USER\u003c/code\u003e 语句是\n   \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e 的一种扩展。SQL 标准将用户的定义留给具体实现决定。\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-droprole.html\" title=\"DROP ROLE\"\u003e\u003cspan class=\"refentrytitle\"\u003eDROP ROLE\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e\u003c/section\u003e","file":"sql-dropuser.html","lang":"en","name":"DROP USER","purpose":"remove a database role","purpose_zh":"移除一个数据库角色","related":["drop-role"],"sections":[{"html":"\u003cp\u003e\u003ccode class=\"command\"\u003eDROP USER\u003c/code\u003e is simply an alternate spelling of \u003ca href=\"/docs/18/sql-droprole.html\" title=\"DROP ROLE\"\u003e\u003ccode class=\"command\"\u003eDROP ROLE\u003c/code\u003e\u003c/a\u003e.\u003c/p\u003e","key":"description","title":"Description"},{"html":"\u003cp\u003eThe \u003ccode class=\"command\"\u003eDROP USER\u003c/code\u003e statement is a \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e extension. The SQL standard leaves the definition of users to the implementation.\u003c/p\u003e","key":"compatibility","title":"Compatibility"},{"html":"\u003cspan class=\"simplelist\"\u003e\u003ca href=\"/wiki/sql/drop-role/?v=18\" title=\"DROP ROLE\"\u003e\u003cspan class=\"refentrytitle\"\u003eDROP ROLE\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e","key":"see_also","title":"See Also"}],"sections_same_as":"","slug":"18","synopsis_html":"DROP USER [ IF EXISTS ] \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e [, ...]","synopsis_text":"DROP USER [ IF EXISTS ] name [, ...]","translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/sql-dropuser.html","sha256":"fd20802730b59fb7db6b79a36f4a3054e3b4f07dbb4418f048ba858f6328fe07"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{},"MeasuredEvidence":{}},"Text":{"Collection":"sql","Key":"drop-user","SourceDatabase":"center","Version":"18","Locale":"en","Title":"DROP USER","Summary":"remove a database role","BodyHTML":"\u003cpre\u003eDROP USER [ IF EXISTS ] name [, ...]\u003c/pre\u003e\u003csection\u003e\u003ch2\u003eDescription\u003c/h2\u003e\u003cp\u003e\u003ccode\u003eDROP USER\u003c/code\u003e is simply an alternate spelling of \u003ca href=\"/docs/18/sql-droprole.html\" title=\"DROP ROLE\" rel=\"nofollow\"\u003e\u003ccode\u003eDROP ROLE\u003c/code\u003e\u003c/a\u003e.\u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003eCompatibility\u003c/h2\u003e\u003cp\u003eThe \u003ccode\u003eDROP USER\u003c/code\u003e statement is a \u003cspan\u003ePostgreSQL\u003c/span\u003e extension. The SQL standard leaves the definition of users to the implementation.\u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003eSee Also\u003c/h2\u003e\u003cspan\u003e\u003ca href=\"/wiki/sql/drop-role/?v=18\" title=\"DROP ROLE\" rel=\"nofollow\"\u003e\u003cspan\u003eDROP ROLE\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e\u003c/section\u003e","SourceRevision":"wiki-repair-20261023:3f13c40cf053e6253043b26dbfbfcacb8c0ae77ffd0ac9794440052cb409b722","ContentHash":"ad1a8328405e12b4947a94cd4519625069a17f723c6921915e5e6cbe347dbf26","Payload":{"related":["drop-role"],"sections":[{"html":"\u003cp\u003e\u003ccode class=\"command\"\u003eDROP USER\u003c/code\u003e is simply an alternate spelling of \u003ca href=\"/docs/18/sql-droprole.html\" title=\"DROP ROLE\"\u003e\u003ccode class=\"command\"\u003eDROP ROLE\u003c/code\u003e\u003c/a\u003e.\u003c/p\u003e","key":"description","title":"Description"},{"html":"\u003cp\u003eThe \u003ccode class=\"command\"\u003eDROP USER\u003c/code\u003e statement is a \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e extension. The SQL standard leaves the definition of users to the implementation.\u003c/p\u003e","key":"compatibility","title":"Compatibility"},{"html":"\u003cspan class=\"simplelist\"\u003e\u003ca href=\"/wiki/sql/drop-role/?v=18\" title=\"DROP ROLE\"\u003e\u003cspan class=\"refentrytitle\"\u003eDROP ROLE\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e","key":"see_also","title":"See Also"}],"sections_same_as":"","synopsis_html":"DROP USER [ IF EXISTS ] \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e [, ...]","synopsis_text":"DROP USER [ IF EXISTS ] name [, ...]"}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","6.4","6.5","7.0","7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
