~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to doc/src/sgml/ref/drop_cast.sgml

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/drop_cast.sgml,v 1.6 2003-11-29 19:51:38 pgsql Exp $ -->
 
2
 
 
3
<refentry id="SQL-DROPCAST">
 
4
 <refmeta>
 
5
  <refentrytitle id="SQL-DROPCAST-TITLE">DROP CAST</refentrytitle>
 
6
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 
7
 </refmeta>
 
8
 
 
9
 <refnamediv>
 
10
  <refname>DROP CAST</refname>
 
11
  <refpurpose>remove a cast</refpurpose>
 
12
 </refnamediv>
 
13
 
 
14
 <indexterm zone="sql-dropcast">
 
15
  <primary>DROP CAST</primary>
 
16
 </indexterm>
 
17
 
 
18
 <refsynopsisdiv>
 
19
<synopsis>
 
20
DROP CAST (<replaceable>sourcetype</replaceable> AS <replaceable>targettype</replaceable>) [ CASCADE | RESTRICT ]
 
21
</synopsis>
 
22
 </refsynopsisdiv>
 
23
  
 
24
 <refsect1 id="sql-dropcast-description">
 
25
  <title>Description</title>
 
26
 
 
27
  <para>
 
28
   <command>DROP CAST</command> removes a previously defined cast.
 
29
  </para>
 
30
 
 
31
  <para>
 
32
   To be able to drop a cast, you must own the source or the target
 
33
   data type.  These are the same privileges that are required to
 
34
   create a cast.
 
35
  </para>
 
36
 </refsect1>
 
37
 
 
38
 <refsect1>
 
39
  <title>Parameters</title>
 
40
 
 
41
   <variablelist>
 
42
    <varlistentry>
 
43
     <term><replaceable>sourcetype</replaceable></term>
 
44
 
 
45
     <listitem>
 
46
      <para>
 
47
       The name of the source data type of the cast.
 
48
      </para>
 
49
     </listitem>
 
50
    </varlistentry>
 
51
 
 
52
    <varlistentry>
 
53
     <term><replaceable>targettype</replaceable></term>
 
54
 
 
55
     <listitem>
 
56
      <para>
 
57
       The name of the target data type of the cast.
 
58
      </para>
 
59
     </listitem>
 
60
    </varlistentry>
 
61
 
 
62
    <varlistentry>
 
63
     <term><literal>CASCADE</literal></term>
 
64
     <term><literal>RESTRICT</literal></term>
 
65
 
 
66
     <listitem>
 
67
      <para>
 
68
       These key words do not have any effect, since there are no
 
69
       dependencies on casts.
 
70
      </para>
 
71
     </listitem>
 
72
    </varlistentry>
 
73
   </variablelist>
 
74
 </refsect1>
 
75
 
 
76
 <refsect1 id="sql-dropcast-examples">
 
77
  <title>Examples</title>
 
78
 
 
79
  <para>
 
80
   To drop the cast from type <type>text</type> to type <type>int</type>:
 
81
<programlisting>
 
82
DROP CAST (text AS int);
 
83
</programlisting>
 
84
  </para>
 
85
 </refsect1>
 
86
 
 
87
 <refsect1 id="sql-dropcast-compat">
 
88
  <title>Compatibility</title>
 
89
 
 
90
  <para>
 
91
   The <command>DROP CAST</command> command conforms to the SQL standard.
 
92
  </para>
 
93
 </refsect1>
 
94
 
 
95
 <refsect1>
 
96
  <title>See Also</title>
 
97
 
 
98
  <simplelist type="inline">
 
99
   <member><xref linkend="sql-createcast" endterm="sql-createcast-title"></member>
 
100
  </simplelist>
 
101
 </refsect1>
 
102
 
 
103
</refentry>
 
104
 
 
105
<!-- Keep this comment at the end of the file
 
106
Local variables:
 
107
mode:sgml
 
108
sgml-omittag:nil
 
109
sgml-shorttag:t
 
110
sgml-minimize-attributes:nil
 
111
sgml-always-quote-attributes:t
 
112
sgml-indent-step:1
 
113
sgml-indent-data:t
 
114
sgml-parent-document:nil
 
115
sgml-default-dtd-file:"../reference.ced"
 
116
sgml-exposed-tags:nil
 
117
sgml-local-catalogs:("/usr/lib/sgml/catalog")
 
118
sgml-local-ecat-files:nil
 
119
End:
 
120
-->