alter_type.7

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

7
64
字号
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "ALTER TYPE" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEALTER TYPE \- change the definition of a type.SH SYNOPSIS.sp.nfALTER TYPE \fIname\fR OWNER TO \fInew_owner\fR ALTER TYPE \fIname\fR SET SCHEMA \fInew_schema\fR  .sp.fi.SH "DESCRIPTION".PP\fBALTER TYPE\fR changes the definition of an existing type.The only currently available capabilities are changing the owner and schemaof a type..PPYou must own the type to use \fBALTER TYPE\fR.To change the schema of a type, you must also haveCREATE privilege on the new schema.To alter the owner, you must also be a direct or indirect member of the newowning role, and that role must have CREATE privilege onthe type's schema. (These restrictions enforce that altering the ownerdoesn't do anything you couldn't do by dropping and recreating the type.However, a superuser can alter ownership of any type anyway.).SH "PARAMETERS".PP.TP\fB\fIname\fB\fRThe name (possibly schema-qualified) of an existing type toalter..TP\fB\fInew_owner\fB\fRThe user name of the new owner of the type..TP\fB\fInew_schema\fB\fRThe new schema for the type..PP.SH "EXAMPLES".PPTo change the owner of the user-defined type emailto joe:.sp.nfALTER TYPE email OWNER TO joe;   .sp.fi.PPTo change the schema of the user-defined type emailto customers:.sp.nfALTER TYPE email SET SCHEMA customers;   .sp.fi.SH "COMPATIBILITY".PPThere is no \fBALTER TYPE\fR statement in the SQLstandard.

⌨️ 快捷键说明

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