drop_owned.7
来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 50 行
7
50 行
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "DROP OWNED" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEDROP OWNED \- remove database objects owned by a database role.SH SYNOPSIS.sp.nfDROP OWNED BY \fIname\fR [, ...] [ CASCADE | RESTRICT ].sp.fi.SH "DESCRIPTION".PP\fBDROP OWNED\fR drops all the objects in the currentdatabase that are owned by one of the specified roles. Anyprivileges granted to the given roles on objects in the currentdatabase will also be revoked..SH "PARAMETERS".TP\fB\fIname\fB\fRThe name of a role whose objects will be dropped, and whoseprivileges will be revoked..TP\fBCASCADE\fRAutomatically drop objects that depend on the affected objects..TP\fBRESTRICT\fRRefuse to drop the objects owned by a role if any other databaseobjects depend on one of the affected objects. This is the default..SH "NOTES".PP\fBDROP OWNED\fR is often used to prepare for theremoval of one or more roles. Because \fBDROP OWNED\fRonly affects the objects in the current database, it is usuallynecessary to execute this command in each database that containsobjects owned by a role that is to be removed..PPUsing the CASCADE option may make the commandrecurse to objects owned by other users..PPThe REASSIGN OWNED [\fBreassign_owned\fR(7)] command is an alternative thatreassigns the ownership of all the database objects owned by one ormore roles..SH "COMPATIBILITY".PPThe \fBDROP OWNED\fR statement is aPostgreSQL extension..SH "SEE ALSO"REASSIGN OWNED [\fBreassign_owned\fR(7)], DROP ROLE [\fBdrop_role\fR(l)]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?