| 1 |
<!-- |
|---|
| 2 |
$Header: /var/lib/cvs/pgsql-fr/sgml/ref/close.sgml,v 1.8.2.1 2005/03/14 06:03:01 guillaume Exp $ |
|---|
| 3 |
PostgreSQL documentation |
|---|
| 4 |
--> |
|---|
| 5 |
|
|---|
| 6 |
<refentry id="SQL-CLOSE"> |
|---|
| 7 |
<refmeta> |
|---|
| 8 |
<refentrytitle id="SQL-CLOSE-TITLE">CLOSE</refentrytitle> |
|---|
| 9 |
<refmiscinfo>SQL - Instructions du langage</refmiscinfo> |
|---|
| 10 |
</refmeta> |
|---|
| 11 |
|
|---|
| 12 |
<refnamediv> |
|---|
| 13 |
<refname>CLOSE</refname> |
|---|
| 14 |
<refpurpose>ferme un curseur</refpurpose> |
|---|
| 15 |
</refnamediv> |
|---|
| 16 |
|
|---|
| 17 |
<indexterm zone="sql-close"> |
|---|
| 18 |
<primary>CLOSE</primary> |
|---|
| 19 |
</indexterm> |
|---|
| 20 |
|
|---|
| 21 |
<refsynopsisdiv> |
|---|
| 22 |
<synopsis> |
|---|
| 23 |
CLOSE <replaceable class="PARAMETER">nom</replaceable> |
|---|
| 24 |
</synopsis> |
|---|
| 25 |
</refsynopsisdiv> |
|---|
| 26 |
|
|---|
| 27 |
<refsect1> |
|---|
| 28 |
<title>Description</title> |
|---|
| 29 |
|
|---|
| 30 |
<para> |
|---|
| 31 |
<command>CLOSE</command> libère les ressources associées à un curseur |
|---|
| 32 |
ouvert. Une fois le curseur fermé, aucune opération n'est autorisée sur |
|---|
| 33 |
celui-ci. Un curseur doit être fermé lorsqu'il n'est plus nécessaire. |
|---|
| 34 |
</para> |
|---|
| 35 |
|
|---|
| 36 |
<para> |
|---|
| 37 |
Tout curseur ouvert non détenable est fermé implicitement lorsqu'une |
|---|
| 38 |
transaction est terminée avec <command>COMMIT</command> ou |
|---|
| 39 |
<command>ROLLBACK</command>. Un curseur détenable est implicitement fermé si la |
|---|
| 40 |
transaction qui l'a créé est annulée via <command>ROLLBACK</command>. Si |
|---|
| 41 |
cette transaction est validée (avec succès), le curseur détenable reste ouvert |
|---|
| 42 |
jusqu'à ce qu'une commande <command>CLOSE</command> explicite soit lancée ou |
|---|
| 43 |
jusqu'à la déconnexion du client. |
|---|
| 44 |
</para> |
|---|
| 45 |
</refsect1> |
|---|
| 46 |
|
|---|
| 47 |
<refsect1> |
|---|
| 48 |
<title>Paramètres</title> |
|---|
| 49 |
|
|---|
| 50 |
<variablelist> |
|---|
| 51 |
<varlistentry> |
|---|
| 52 |
<term><replaceable class="PARAMETER">name</replaceable></term> |
|---|
| 53 |
<listitem> |
|---|
| 54 |
<para> |
|---|
| 55 |
Le nom du curseur ouvert à fermer. |
|---|
| 56 |
</para> |
|---|
| 57 |
</listitem> |
|---|
| 58 |
</varlistentry> |
|---|
| 59 |
</variablelist> |
|---|
| 60 |
</refsect1> |
|---|
| 61 |
|
|---|
| 62 |
<refsect1> |
|---|
| 63 |
<title>Notes</title> |
|---|
| 64 |
|
|---|
| 65 |
<para> |
|---|
| 66 |
<productname>PostgreSQL</productname> n'a pas d'instruction |
|---|
| 67 |
explicite d'ouverture (<command>OPEN</command>) de curseur ; un curseur |
|---|
| 68 |
est considéré ouvert à sa déclaration. Utilisez l'instruction |
|---|
| 69 |
<command>DECLARE</command> pour déclarer un curseur. |
|---|
| 70 |
</para> |
|---|
| 71 |
</refsect1> |
|---|
| 72 |
|
|---|
| 73 |
<refsect1> |
|---|
| 74 |
<title>Exemples</title> |
|---|
| 75 |
|
|---|
| 76 |
<para> |
|---|
| 77 |
Fermer le curseur <literal>liahona</literal> : |
|---|
| 78 |
<programlisting> |
|---|
| 79 |
CLOSE liahona; |
|---|
| 80 |
</programlisting> |
|---|
| 81 |
</para> |
|---|
| 82 |
</refsect1> |
|---|
| 83 |
|
|---|
| 84 |
<refsect1> |
|---|
| 85 |
<title>Compatibilité</title> |
|---|
| 86 |
|
|---|
| 87 |
<para> |
|---|
| 88 |
<command>CLOSE</command> est totalement conforme avec le standard SQL. |
|---|
| 89 |
</para> |
|---|
| 90 |
</refsect1> |
|---|
| 91 |
</refentry> |
|---|
| 92 |
|
|---|
| 93 |
<!-- Keep this comment at the end of the file |
|---|
| 94 |
Local variables: |
|---|
| 95 |
mode: sgml |
|---|
| 96 |
sgml-omittag:t |
|---|
| 97 |
sgml-shorttag:t |
|---|
| 98 |
sgml-minimize-attributes:nil |
|---|
| 99 |
sgml-always-quote-attributes:t |
|---|
| 100 |
sgml-indent-step:1 |
|---|
| 101 |
sgml-indent-data:t |
|---|
| 102 |
sgml-parent-document:nil |
|---|
| 103 |
sgml-default-dtd-file:"../reference.ced" |
|---|
| 104 |
sgml-exposed-tags:nil |
|---|
| 105 |
sgml-local-catalogs:"/usr/lib/sgml/catalog" |
|---|
| 106 |
sgml-local-ecat-files:nil |
|---|
| 107 |
End: |
|---|
| 108 |
--> |
|---|