Imported upstream version 1.5
[manpages-zh.git] / raw / man7 / drop_type.7
blobdd8b202eee4f0fb36ea0f887102a9781aa1272ed
1 .\\" auto-generated by docbook2man-spec $Revision: 1.1 $
2 .TH "DROP TYPE" "7" "2003-11-02" "SQL - Language Statements" "SQL Commands"
3 .SH NAME
4 DROP TYPE \- remove a data type
6 .SH SYNOPSIS
7 .sp
8 .nf
9 DROP TYPE \fIname\fR [, ...] [ CASCADE | RESTRICT ]
10 .sp
11 .fi
12 .SH "DESCRIPTION"
13 .PP
14 \fBDROP TYPE\fR will remove a user-defined data type.
15 Only the owner of a type can remove it.
16 .SH "PARAMETERS"
17 .TP
18 \fB\fIname\fB\fR
19 The name (optionally schema-qualified) of the data type to remove.
20 .TP
21 \fBCASCADE\fR
22 Automatically drop objects that depend on the type (such as
23 table columns, functions, operators).
24 .TP
25 \fBRESTRICT\fR
26 Refuse to drop the type if any objects depend on it. This is
27 the default.
28 .SH "EXAMPLES"
29 .PP
30 To remove the data type \fBbox\fR:
31 .sp
32 .nf
33 DROP TYPE box;
34 .sp
35 .fi
36 .SH "COMPATIBILITY"
37 .PP
38 This command is similar to the corresponding command in the SQL
39 standard, but note that the \fBCREATE TYPE\fR command
40 and the data type extension mechanisms in
41 PostgreSQL differ from the SQL standard.
42 .SH "SEE ALSO"
43 CREATE TYPE [\fBcreate_type\fR(7)]