Imported upstream version 1.5
[manpages-zh.git] / raw / man7 / drop_cast.7
blobad29af74ee1e8acb62423b809d833747c8004174
1 .\\" auto-generated by docbook2man-spec $Revision: 1.1 $
2 .TH "DROP CAST" "7" "2003-11-02" "SQL - Language Statements" "SQL Commands"
3 .SH NAME
4 DROP CAST \- remove a cast
6 .SH SYNOPSIS
7 .sp
8 .nf
9 DROP CAST (\fIsourcetype\fR AS \fItargettype\fR) [ CASCADE | RESTRICT ]
10 .sp
11 .fi
12 .SH "DESCRIPTION"
13 .PP
14 \fBDROP CAST\fR removes a previously defined cast.
15 .PP
16 To be able to drop a cast, you must own the source or the target
17 data type. These are the same privileges that are required to
18 create a cast.
19 .SH "PARAMETERS"
20 .TP
21 \fB\fIsourcetype\fB\fR
22 The name of the source data type of the cast.
23 .TP
24 \fB\fItargettype\fB\fR
25 The name of the target data type of the cast.
26 .TP
27 \fBCASCADE\fR
28 .TP
29 \fBRESTRICT\fR
30 These key words do not have any effect, since there are no
31 dependencies on casts.
32 .SH "EXAMPLES"
33 .PP
34 To drop the cast from type \fBtext\fR to type \fBint\fR:
35 .sp
36 .nf
37 DROP CAST (text AS int);
38 .sp
39 .fi
40 .SH "COMPATIBILITY"
41 .PP
42 The \fBDROP CAST\fR command conforms to the SQL standard.
43 .SH "SEE ALSO"
44 CREATE CAST [\fBcreate_cast\fR(7)]