Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf20d467

Browse files
committed
Add missing SGML file.
1 parentab117a6 commitf20d467

File tree

1 file changed

+178
-0
lines changed

1 file changed

+178
-0
lines changed

‎doc/src/sgml/ref/alter_trigger.sgml

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
<!--
2+
PostgreSQL documentation
3+
-->
4+
5+
<refentry id="SQL-ALTERTRIGGER">
6+
<refmeta>
7+
<refentrytitle id="sql-altertrigger-title">
8+
ALTER TRIGGER
9+
</refentrytitle>
10+
<refmiscinfo>SQL - Language Statements</refmiscinfo>
11+
</refmeta>
12+
<refnamediv>
13+
<refname>
14+
ALTER TRIGGER
15+
</refname>
16+
<refpurpose>
17+
change the definition of a trigger
18+
</refpurpose>
19+
</refnamediv>
20+
<refsynopsisdiv>
21+
<refsynopsisdivinfo>
22+
<date>2002-04-19</date>
23+
</refsynopsisdivinfo>
24+
<synopsis>
25+
ALTER TRIGGER <replaceable class="PARAMETER">trigger</replaceable> ON <replaceable class="PARAMETER">table</replaceable>
26+
RENAME TO <replaceable class="PARAMETER">newname</replaceable>
27+
</synopsis>
28+
29+
<refsect2 id="R2-SQL-ALTERTRIGGER-1">
30+
<refsect2info>
31+
<date>2002-04-19</date>
32+
</refsect2info>
33+
<title>
34+
Inputs
35+
</title>
36+
<para>
37+
<variablelist>
38+
39+
<varlistentry>
40+
<term><replaceable class="PARAMETER"> trigger </replaceable></term>
41+
<listitem>
42+
<para>
43+
The name of an existing trigger to alter.
44+
</para>
45+
</listitem>
46+
</varlistentry>
47+
48+
<varlistentry>
49+
<term><replaceable class="PARAMETER"> table </replaceable></term>
50+
<listitem>
51+
<para>
52+
The name of the table on which this trigger acts.
53+
</para>
54+
</listitem>
55+
</varlistentry>
56+
57+
<varlistentry>
58+
<term><replaceable class="PARAMETER"> newname </replaceable></term>
59+
<listitem>
60+
<para>
61+
New name for the existing trigger.
62+
</para>
63+
</listitem>
64+
</varlistentry>
65+
66+
</variablelist>
67+
</para>
68+
</refsect2>
69+
70+
<refsect2 id="R2-SQL-ALTERTRIGGER-2">
71+
<refsect2info>
72+
<date>2002-04-19</date>
73+
</refsect2info>
74+
<title>
75+
Outputs
76+
</title>
77+
<para>
78+
79+
<variablelist>
80+
<varlistentry>
81+
<term><computeroutput>ALTER</computeroutput></term>
82+
<listitem>
83+
<para>
84+
Message returned from trigger renaming.
85+
</para>
86+
</listitem>
87+
</varlistentry>
88+
89+
<varlistentry>
90+
<term><computeroutput>ERROR</computeroutput></term>
91+
<listitem>
92+
<para>
93+
Message returned if trigger is not available, or new name is a duplicate of another existing trigger on the table.
94+
</para>
95+
</listitem>
96+
</varlistentry>
97+
</variablelist>
98+
</para>
99+
</refsect2>
100+
</refsynopsisdiv>
101+
102+
<refsect1 id="R1-SQL-ALTERTRIGGER-1">
103+
<refsect1info>
104+
<date>2002-04-19</date>
105+
</refsect1info>
106+
<title>
107+
Description
108+
</title>
109+
<para>
110+
<command>ALTER TRIGGER</command> changes the definition of an existing trigger.
111+
The <literal>RENAME</literal> clause causes the name of a trigger on the given table
112+
to change without otherwise changing the trigger definition.
113+
</para>
114+
115+
<para>
116+
You must own the table on which the trigger acts in order to change its properties.
117+
</para>
118+
119+
<refsect2 id="R2-SQL-ALTERTRIGGER-3">
120+
<refsect2info>
121+
<date>2002-04-19</date>
122+
</refsect2info>
123+
<title>
124+
Notes
125+
</title>
126+
<para>
127+
Refer to <command>CREATE TRIGGER</command> for a further description
128+
of valid arguments.
129+
</para>
130+
</refsect2>
131+
</refsect1>
132+
133+
<refsect1 id="R1-SQL-ALTERTRIGGER-2">
134+
<title>
135+
Usage
136+
</title>
137+
<para>
138+
To rename an existing trigger:
139+
<programlisting>
140+
ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs;
141+
</programlisting>
142+
</para>
143+
</refsect1>
144+
145+
<refsect1 id="R1-SQL-ALTERTRIGGER-3">
146+
<title>
147+
Compatibility
148+
</title>
149+
150+
<refsect2 id="R2-SQL-ALTERTRIGGER-4">
151+
<refsect2info>
152+
<date>2002-04-19</date>
153+
</refsect2info>
154+
<title>SQL92</title>
155+
<para>
156+
The clause to rename triggers is a
157+
<productname>PostgreSQL</productname> extension from SQL92.
158+
</para>
159+
</refsect2>
160+
</refsect1>
161+
</refentry>
162+
163+
<!-- Keep this comment at the end of the file
164+
Local variables:
165+
mode: sgml
166+
sgml-omittag:nil
167+
sgml-shorttag:t
168+
sgml-minimize-attributes:nil
169+
sgml-always-quote-attributes:t
170+
sgml-indent-step:1
171+
sgml-indent-data:t
172+
sgml-parent-document:nil
173+
sgml-default-dtd-file:"../reference.ced"
174+
sgml-exposed-tags:nil
175+
sgml-local-catalogs:"/usr/lib/sgml/catalog"
176+
sgml-local-ecat-files:nil
177+
End:
178+
-->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp