drop_schema.7

来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 53 行

7
53
字号
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "DROP SCHEMA" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEDROP SCHEMA \- remove a schema.SH SYNOPSIS.sp.nfDROP SCHEMA [ IF EXISTS ] \fIname\fR [, ...] [ CASCADE | RESTRICT ].sp.fi.SH "DESCRIPTION".PP\fBDROP SCHEMA\fR removes schemas from the database..PPA schema can only be dropped by its owner or a superuser. Note thatthe owner can drop the schema (and thereby all contained objects)even if he does not own some of the objects within the schema..SH "PARAMETERS".TP\fBIF EXISTS\fRDo not throw an error if the schema does not exist. A notice is issued in this case..TP\fB\fIname\fB\fRThe name of a schema..TP\fBCASCADE\fRAutomatically drop objects (tables, functions, etc.) that arecontained in the schema..TP\fBRESTRICT\fRRefuse to drop the schema if it contains any objects. This isthe default..SH "EXAMPLES".PPTo remove schema mystuff from the database,along with everything it contains:.sp.nfDROP SCHEMA mystuff CASCADE;.sp.fi.SH "COMPATIBILITY".PP\fBDROP SCHEMA\fR is fully conforming with the SQLstandard, except that the standard only allows one schema to bedropped per command, and apart from the IF EXISTS option, which is a PostgreSQL extension..SH "SEE ALSO"ALTER SCHEMA [\fBalter_schema\fR(7)], CREATE SCHEMA [\fBcreate_schema\fR(l)]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?