drop_database.7
来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 44 行
7
44 行
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "DROP DATABASE" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEDROP DATABASE \- remove a database.SH SYNOPSIS.sp.nfDROP DATABASE [ IF EXISTS ] \fIname\fR.sp.fi.SH "DESCRIPTION".PP\fBDROP DATABASE\fR drops a database. It removes thecatalog entries for the database and deletes the directorycontaining the data. It can only be executed by the database owner.Also, it cannot be executed while you or anyone else are connectedto the target database. (Connect to postgres or anyother database to issue this command.) .PP\fBDROP DATABASE\fR cannot be undone. Use it with care!.SH "PARAMETERS".TP\fBIF EXISTS\fRDo not throw an error if the database does not exist. A notice is issued in this case..TP\fB\fIname\fB\fRThe name of the database to remove..SH "NOTES".PP\fBDROP DATABASE\fR cannot be executed inside a transactionblock..PPThis command cannot be executed while connected to the targetdatabase. Thus, it might be more convenient to use the programdropdb [\fBdropdb\fR(1)] instead,which is a wrapper around this command..SH "COMPATIBILITY".PPThere is no \fBDROP DATABASE\fR statement in the SQL standard..SH "SEE ALSO"CREATE DATABASE [\fBcreate_database\fR(7)]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?