1999-06-14 09:37:05 +02:00
|
|
|
<refentry id="SQL-COMMIT">
|
|
|
|
<refmeta>
|
|
|
|
<refentrytitle id="SQL-COMMIT-TITLE">
|
1998-05-13 07:34:00 +02:00
|
|
|
COMMIT
|
1999-06-14 09:37:05 +02:00
|
|
|
</refentrytitle>
|
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>
|
1998-05-13 07:34:00 +02:00
|
|
|
COMMIT
|
1999-06-14 09:37:05 +02:00
|
|
|
</refname>
|
|
|
|
<refpurpose>
|
1998-05-13 07:34:00 +02:00
|
|
|
Commits the current transaction
|
1999-06-14 09:37:05 +02:00
|
|
|
</refpurpose>
|
1998-12-29 03:24:47 +01:00
|
|
|
</refnamediv>
|
1998-05-13 07:34:00 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsynopsisdiv>
|
|
|
|
<refsynopsisdivinfo>
|
|
|
|
<date>1998-09-08</date>
|
|
|
|
</refsynopsisdivinfo>
|
|
|
|
<synopsis>
|
1998-09-16 16:43:12 +02:00
|
|
|
COMMIT [ WORK | TRANSACTION ]
|
1999-06-14 09:37:05 +02:00
|
|
|
</synopsis>
|
1998-05-13 07:34:00 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsect2 id="R2-SQL-COMMIT-1">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-09-08</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-05-13 07:34:00 +02:00
|
|
|
Inputs
|
1999-06-14 09:37:05 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-12-29 03:24:47 +01:00
|
|
|
None
|
|
|
|
</para>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsect2>
|
1998-05-13 07:34:00 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsect2 id="R2-SQL-COMMIT-2">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-09-08</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-05-13 07:34:00 +02:00
|
|
|
Outputs
|
1999-06-14 09:37:05 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-10-30 20:34:40 +01:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<returnvalue>END</returnvalue>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Message returned if the transaction is successfully committed.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<returnvalue>NOTICE EndTransactionBlock and not inprogress/abort state</returnvalue>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
1998-12-29 03:24:47 +01:00
|
|
|
If there is no transaction in progress.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
1999-06-14 09:37:05 +02:00
|
|
|
</variablelist>
|
1998-12-29 03:24:47 +01:00
|
|
|
</para>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsect2>
|
|
|
|
</refsynopsisdiv>
|
1998-05-13 07:34:00 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsect1 id="R1-SQL-COMMIT-1">
|
|
|
|
<refsect1info>
|
|
|
|
<date>1998-09-08</date>
|
|
|
|
</refsect1info>
|
|
|
|
<title>
|
1998-05-13 07:34:00 +02:00
|
|
|
Description
|
1999-06-14 09:37:05 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-16 16:43:12 +02:00
|
|
|
<command>COMMIT</command> commits the current transaction. All
|
1998-05-13 07:34:00 +02:00
|
|
|
changes made by the transaction become visible to others
|
|
|
|
and are guaranteed to be durable if a crash occurs.
|
1999-06-14 09:37:05 +02:00
|
|
|
</para>
|
1998-05-13 07:34:00 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsect2 id="R2-SQL-COMMIT-3">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-09-08</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-05-13 07:34:00 +02:00
|
|
|
Notes
|
1999-06-14 09:37:05 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-16 16:43:12 +02:00
|
|
|
The keywords WORK and TRANSACTION are noise and can be omitted.
|
1999-06-14 09:37:05 +02:00
|
|
|
</para>
|
|
|
|
|
1998-05-13 07:34:00 +02:00
|
|
|
<para>
|
1999-06-14 09:37:05 +02:00
|
|
|
Use <xref linkend="SQL-ROLLBACK-TITLE" endterm="SQL-ROLLBACK-TITLE">
|
|
|
|
to abort a transaction.
|
1998-05-13 07:34:00 +02:00
|
|
|
</para>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refsect2>
|
1998-05-13 07:34:00 +02:00
|
|
|
</refsect1>
|
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsect1 id="R1-SQL-COMMIT-2">
|
|
|
|
<title>
|
1998-05-13 07:34:00 +02:00
|
|
|
Usage
|
1999-06-14 09:37:05 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
To make all changes permanent:
|
|
|
|
<programlisting>
|
1998-09-16 16:43:12 +02:00
|
|
|
COMMIT WORK;
|
1999-06-14 09:37:05 +02:00
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
1998-05-13 07:34:00 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsect1 id="R1-SQL-COMMIT-3">
|
|
|
|
<title>
|
1998-05-13 07:34:00 +02:00
|
|
|
Compatibility
|
1999-06-14 09:37:05 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
</para>
|
1998-05-13 07:34:00 +02:00
|
|
|
|
1999-06-14 09:37:05 +02:00
|
|
|
<refsect2 id="R2-SQL-COMMIT-4">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-09-08</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-05-13 07:34:00 +02:00
|
|
|
SQL92
|
1999-06-14 09:37:05 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-05-13 07:34:00 +02:00
|
|
|
Full compatibility.
|
1999-06-14 09:37:05 +02:00
|
|
|
</para>
|
1998-05-13 07:34:00 +02:00
|
|
|
</refsect2>
|
|
|
|
</refsect1>
|
1999-06-14 09:37:05 +02:00
|
|
|
</refentry>
|
1998-05-13 07:34:00 +02:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
1999-06-14 09:37:05 +02:00
|
|
|
sgml-omittag:nil
|
1998-05-13 07:34:00 +02:00
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../reference.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:"/usr/lib/sgml/catalog"
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
-->
|