cvs: phpdoc-fr /reference/oci8/functions oci-field-is-null.xml oci-field-name.xml oci-field-precision.xml oci-field-scale.xml oci-field-size.xml
oci-field-type-raw.xml oci-field-type.xml oci-lob-eof.xml ocicolumnisnull.xml ocicolumnname.xml ocicolumnprecision.xml ocicolumnscale.xml
ocicolumnsize.xml ocicolumntype.xml ocicolumntyperaw.xml
| From: | Damien Seguy | Date: | Sat, 03 Apr 2004 16:44:37 +0000 |
| Subject: | cvs: phpdoc-fr /reference/oci8/functions oci-field-is-null.xml oci-field-name.xml oci-field-precision.xml oci-field-scale.xml oci-field-size.xml oci-field-type-raw.xml oci-field-type.xml oci-lob-eof.xml ocicolumnisnull.xml ocicolumnname.xml ocicolumnprecision.xml ocicolumnscale.xml ocicolumnsize.xml ocicolumntype.xml ocicolumntyperaw.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-2125@lists.php.net to get a copy of this message | ||
dams Sat Apr 3 11:44:37 2004 EDT
Added files:
/phpdoc-fr/reference/oci8/functions oci-field-is-null.xml
oci-field-name.xml
oci-field-precision.xml
oci-field-scale.xml
oci-field-size.xml
oci-field-type-raw.xml
oci-field-type.xml
oci-lob-eof.xml
Removed files:
/phpdoc-fr/reference/oci8/functions ocicolumnisnull.xml
ocicolumnname.xml
ocicolumnprecision.xml
ocicolumnscale.xml
ocicolumnsize.xml
ocicolumntype.xml
ocicolumntyperaw.xml
Log:
initial translation
http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-is-null.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-is-null.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-is-null.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-is-null"> <refnamediv> <refname>oci_field_is_null</refname> <refpurpose>Teste si la valeur d'une colonne Oracle est &null;</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>oci_field_is_null</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>mixed</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>oci_field_is_null</function> retourne &true; si la colonne <parameter>column</parameter> du résultat <parameter>stmt</parameter> est &null;. Vous pouvez utiliser le numéro de colonne (l'indexation des colonnes commence à 1) ou le nom de la colonne, pour le paramètre <parameter>column</parameter>. </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnisnull</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_is_null</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-name.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-name.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-name.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-name"> <refnamediv> <refname>oci_field_name</refname> <refpurpose>Retourne le nom d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>oci_field_name</methodname> <methodparam><type>resource</type><parameter>statement</parameter></methodparam> <methodparam><type>int</type><parameter>field</parameter></methodparam> </methodsynopsis> <simpara> <function>oci_field_name</function> retourne le nom de la colonne numéro <parameter>col</parameter> (l'indexation des colonnes commence à 1). </simpara> <para> <example> <title>Exemple avec <function>oci_field_name</function></title> <programlisting role="php"> <![CDATA[ <?php $conn = oci_connect("scott", "tiger"); $stmt = oci_parse($conn, "SELECT * FROM emp"); oci_execute($stmt); echo "<table border=\"1\">"; echo "<tr>"; echo "<th>Name</th>"; echo "<th>Type</th>"; echo "<th>Length</th>"; echo "</tr>"; $ncols = oci_num_fields($stmt); for ($i = 1; $i <= $ncols; $i++) { $column_name = oci_field_name($stmt, $i); $column_type = oci_field_type($stmt, $i); $column_size = oci_field_size($stmt, $i); echo "<tr>"; echo "<td>$column_name</td>"; echo "<td>$column_type</td>"; echo "<td>$column_size</td>"; echo "</tr>"; } echo "</table>\n"; oci_free_statement($stmt); oci_close($conn); ?> ]]> </programlisting> </example> </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnname</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_name</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <simpara> Voir aussi <function>ocinumcols</function>, <function>ocicolumntype</function> et <function>ocicolumnsize</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-precision.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-precision.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-precision.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-precision"> <refnamediv> <refname>oci_field_precision</refname> <refpurpose>Lit la prcision d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>oci_field_precision</methodname> <methodparam><type>resource</type><parameter>statement</parameter></methodparam> <methodparam><type>int</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>oci_field_precision</function> retourne la prcision du champ dont l'index est <parameter>field</parameter>. Les index sont numrots partir de 1. </para> <para> Pour les colonnes de type FLOAT, la prcision et non nulle, et l'chelle est de -127. Si la prcision est 0, alors la colonne est de type NUMBER. Sinon, c'est de type NUMBER(precision, scale). </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnprecision</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_precision</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <para> Voir aussi <function>oci_field_scale</function> et <function>oci_field_type</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-scale.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-scale.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-scale.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-scale"> <refnamediv> <refname>oci_field_scale</refname> <refpurpose>Lit l'chelle d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>oci_field_scale</methodname> <methodparam><type>resource</type><parameter>statement</parameter></methodparam> <methodparam><type>int</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <methodname>oci_field_scale</methodname> retourne l'chelle de la colonne d'index <parameter>field</parameter>, dans le rsultat <parameter>statement</parameter>. Les index commencent 1. La fonction retourne &false; si la colonne n'existe pas. </para> <para> Pour les colonnes de type FLOAT, la prcision et non nulle, et l'chelle est de -127. Si la prcision est 0, alors la colonne est de type NUMBER. Sinon, c'est de type NUMBER(precision, scale). </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnscale</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_scale</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <para> Voir aussi <function>oci_field_precision</function> et <function>oci_field_type</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-size.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-size.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-size.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-size"> <refnamediv> <refname>oci_field_size</refname> <refpurpose>Retourne la taille d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>oci_field_size</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>mixed</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>oci_field_size</function> retourne la taille de la colonne. Vous pouvez utiliser l'index de colonne (l'indexation commence à 1) ou le nom de la colonne dans le paramètre <parameter>column</parameter>. </para> <para> <example> <title>Exemple avec <function>oci_field_size</function></title> <programlisting role="php"> <![CDATA[ <?php $conn = oci_connect("scott", "tiger"); $stmt = oci_parse($conn, "SELECT * FROM emp"); oci_execute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name</TH>"; print "<TH>Type</TH>"; print "<TH>Length</TH>"; print "</TR>"; $ncols = oci_num_fields($stmt); for ($i = 1; $i <= $ncols; $i++) { $column_name = oci_field_name($stmt, $i); $column_type = oci_field_type($stmt, $i); $column_size = oci_field_size($stmt, $i); echo "<tr>"; echo "<td>$column_name</td>"; echo "<td>$column_type</td>"; echo "<td>$column_size</td>"; echo "</tr>"; } echo "</table>"; oci_free_statement($stmt); oci_close($conn); ?> ]]> </programlisting> </example> </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnprecision</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_precision</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <simpara> Voir aussi <function>oci_num_fields</function> et <function>oci_field_name</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-type-raw.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-type-raw.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-type-raw.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.ocicolumntyperaw"> <refnamediv> <refname>oci_field_type_raw</refname> <refpurpose>Lit directement le type de colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>ocicolumntyperaw</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <para> <function>oci_field_type_raw</function> retourne le type de donnes Oracle brute, pour le champs <parameter>col</parameter> dans le rsultat <parameter>stmt</parameter>. </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumntyperaw</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_type_raw</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <para> Cependant, si vouss souhaitez avoir le type de colonne, <function>oci_field_type</function> sera plus adapt. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-type.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-type.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-type.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-type"> <refnamediv> <refname>oci_field_type</refname> <refpurpose>Retourne le type de donnes d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>oci_field_type</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <simpara> <function>oci_field_type</function> retourne le type de donnes de la colonne correspondant au numro de colonne <parameter>col</parameter> dans le rsultat <parameter>stmt</parameter> (les colonnes sont indexes partir de 1). </simpara> <para> <example> <title>Exemple avec <function>oci_field_type</function></title> <programlisting role="php"> <![CDATA[ <?php $conn = oci_connect("scott", "tiger"); $stmt = oci_parse($conn, "SELECT * FROM emp"); oci_execute($stmt); echo "<table border=\"1\">"; print "<tr>"; print "<th>Nom</th>"; print "<th>Type</th>"; print "<th>Longueur</th>"; print "</tr>"; $ncols = oci_num_fields($stmt); for ($i = 1; $i <= $ncols; $i++) { $column_name = oci_field_name($stmt, $i); $column_type = oci_field_type($stmt, $i); $column_size = oci_field_size($stmt, $i); echo "<tr>"; echo "<td>$column_name</td>"; echo "<td>$column_type</td>"; echo "<td>$column_size</td>"; echo "</tr>"; } echo "</table>\n"; oci_free_statement($stmt); oci_close($conn); ?> ]]> </programlisting> </example> </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumntype</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_type</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <simpara> Voir aussi <function>oci_num_fields</function>, <function>oci_field_name</function> et <function>oci_field_size</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-lob-eof.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-lob-eof.xml +++ phpdoc-fr/reference/oci8/functions/oci-lob-eof.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.oci-lob-eof"> <refnamediv> <refname>lob->eof</refname> <refpurpose>Test la fin du LOB Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>lob->eof</methodname> <void /> </methodsynopsis> <para> <methodname>lob->eof</methodname> retourne &true; si le pointeur interne de LOB a atteint la fin du LOB, et &false; sinon. </para> <para> Voir aussi <function>oci_lob_size</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-is-null.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-is-null.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-is-null.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-is-null"> <refnamediv> <refname>oci_field_is_null</refname> <refpurpose>Teste si la valeur d'une colonne Oracle est &null;</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>oci_field_is_null</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>mixed</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>oci_field_is_null</function> retourne &true; si la colonne <parameter>column</parameter> du résultat <parameter>stmt</parameter> est &null;. Vous pouvez utiliser le numéro de colonne (l'indexation des colonnes commence à 1) ou le nom de la colonne, pour le paramètre <parameter>column</parameter>. </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnisnull</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_is_null</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-name.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-name.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-name.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-name"> <refnamediv> <refname>oci_field_name</refname> <refpurpose>Retourne le nom d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>oci_field_name</methodname> <methodparam><type>resource</type><parameter>statement</parameter></methodparam> <methodparam><type>int</type><parameter>field</parameter></methodparam> </methodsynopsis> <simpara> <function>oci_field_name</function> retourne le nom de la colonne numéro <parameter>col</parameter> (l'indexation des colonnes commence à 1). </simpara> <para> <example> <title>Exemple avec <function>oci_field_name</function></title> <programlisting role="php"> <![CDATA[ <?php $conn = oci_connect("scott", "tiger"); $stmt = oci_parse($conn, "SELECT * FROM emp"); oci_execute($stmt); echo "<table border=\"1\">"; echo "<tr>"; echo "<th>Name</th>"; echo "<th>Type</th>"; echo "<th>Length</th>"; echo "</tr>"; $ncols = oci_num_fields($stmt); for ($i = 1; $i <= $ncols; $i++) { $column_name = oci_field_name($stmt, $i); $column_type = oci_field_type($stmt, $i); $column_size = oci_field_size($stmt, $i); echo "<tr>"; echo "<td>$column_name</td>"; echo "<td>$column_type</td>"; echo "<td>$column_size</td>"; echo "</tr>"; } echo "</table>\n"; oci_free_statement($stmt); oci_close($conn); ?> ]]> </programlisting> </example> </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnname</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_name</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <simpara> Voir aussi <function>ocinumcols</function>, <function>ocicolumntype</function> et <function>ocicolumnsize</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-precision.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-precision.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-precision.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-precision"> <refnamediv> <refname>oci_field_precision</refname> <refpurpose>Lit la prcision d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>oci_field_precision</methodname> <methodparam><type>resource</type><parameter>statement</parameter></methodparam> <methodparam><type>int</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>oci_field_precision</function> retourne la prcision du champ dont l'index est <parameter>field</parameter>. Les index sont numrots partir de 1. </para> <para> Pour les colonnes de type FLOAT, la prcision et non nulle, et l'chelle est de -127. Si la prcision est 0, alors la colonne est de type NUMBER. Sinon, c'est de type NUMBER(precision, scale). </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnprecision</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_precision</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <para> Voir aussi <function>oci_field_scale</function> et <function>oci_field_type</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-scale.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-scale.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-scale.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-scale"> <refnamediv> <refname>oci_field_scale</refname> <refpurpose>Lit l'chelle d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>oci_field_scale</methodname> <methodparam><type>resource</type><parameter>statement</parameter></methodparam> <methodparam><type>int</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <methodname>oci_field_scale</methodname> retourne l'chelle de la colonne d'index <parameter>field</parameter>, dans le rsultat <parameter>statement</parameter>. Les index commencent 1. La fonction retourne &false; si la colonne n'existe pas. </para> <para> Pour les colonnes de type FLOAT, la prcision et non nulle, et l'chelle est de -127. Si la prcision est 0, alors la colonne est de type NUMBER. Sinon, c'est de type NUMBER(precision, scale). </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnscale</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_scale</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <para> Voir aussi <function>oci_field_precision</function> et <function>oci_field_type</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-size.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-size.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-size.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-size"> <refnamediv> <refname>oci_field_size</refname> <refpurpose>Retourne la taille d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>oci_field_size</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>mixed</type><parameter>field</parameter></methodparam> </methodsynopsis> <para> <function>oci_field_size</function> retourne la taille de la colonne. Vous pouvez utiliser l'index de colonne (l'indexation commence à 1) ou le nom de la colonne dans le paramètre <parameter>column</parameter>. </para> <para> <example> <title>Exemple avec <function>oci_field_size</function></title> <programlisting role="php"> <![CDATA[ <?php $conn = oci_connect("scott", "tiger"); $stmt = oci_parse($conn, "SELECT * FROM emp"); oci_execute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name</TH>"; print "<TH>Type</TH>"; print "<TH>Length</TH>"; print "</TR>"; $ncols = oci_num_fields($stmt); for ($i = 1; $i <= $ncols; $i++) { $column_name = oci_field_name($stmt, $i); $column_type = oci_field_type($stmt, $i); $column_size = oci_field_size($stmt, $i); echo "<tr>"; echo "<td>$column_name</td>"; echo "<td>$column_type</td>"; echo "<td>$column_size</td>"; echo "</tr>"; } echo "</table>"; oci_free_statement($stmt); oci_close($conn); ?> ]]> </programlisting> </example> </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumnprecision</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_precision</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <simpara> Voir aussi <function>oci_num_fields</function> et <function>oci_field_name</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-type-raw.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-type-raw.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-type-raw.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.ocicolumntyperaw"> <refnamediv> <refname>oci_field_type_raw</refname> <refpurpose>Lit directement le type de colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>ocicolumntyperaw</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <para> <function>oci_field_type_raw</function> retourne le type de donnes Oracle brute, pour le champs <parameter>col</parameter> dans le rsultat <parameter>stmt</parameter>. </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumntyperaw</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_type_raw</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <para> Cependant, si vouss souhaitez avoir le type de colonne, <function>oci_field_type</function> sera plus adapt. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-field-type.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-field-type.xml +++ phpdoc-fr/reference/oci8/functions/oci-field-type.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> <refentry id="function.oci-field-type"> <refnamediv> <refname>oci_field_type</refname> <refpurpose>Retourne le type de donnes d'une colonne Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>mixed</type><methodname>oci_field_type</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <simpara> <function>oci_field_type</function> retourne le type de donnes de la colonne correspondant au numro de colonne <parameter>col</parameter> dans le rsultat <parameter>stmt</parameter> (les colonnes sont indexes partir de 1). </simpara> <para> <example> <title>Exemple avec <function>oci_field_type</function></title> <programlisting role="php"> <![CDATA[ <?php $conn = oci_connect("scott", "tiger"); $stmt = oci_parse($conn, "SELECT * FROM emp"); oci_execute($stmt); echo "<table border=\"1\">"; print "<tr>"; print "<th>Nom</th>"; print "<th>Type</th>"; print "<th>Longueur</th>"; print "</tr>"; $ncols = oci_num_fields($stmt); for ($i = 1; $i <= $ncols; $i++) { $column_name = oci_field_name($stmt, $i); $column_type = oci_field_type($stmt, $i); $column_size = oci_field_size($stmt, $i); echo "<tr>"; echo "<td>$column_name</td>"; echo "<td>$column_type</td>"; echo "<td>$column_size</td>"; echo "</tr>"; } echo "</table>\n"; oci_free_statement($stmt); oci_close($conn); ?> ]]> </programlisting> </example> </para> <note> <para> Dans les versions de &php; antrieures la version 5.0.0, vous devez utiliser la fonction <function>ocicolumntype</function>. Cet ancien nom est toujours utilisable : un alias a t fait vers la fonction <function>oci_field_type</function>, pour assurer la compatibilit ascendante. Toutesfois, il est recommand de ne plus l'utiliser. </para> </note> <simpara> Voir aussi <function>oci_num_fields</function>, <function>oci_field_name</function> et <function>oci_field_size</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-fr/reference/oci8/functions/oci-lob-eof.xml?r=1.1&p=1 Index: phpdoc-fr/reference/oci8/functions/oci-lob-eof.xml +++ phpdoc-fr/reference/oci8/functions/oci-lob-eof.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.oci-lob-eof"> <refnamediv> <refname>lob->eof</refname> <refpurpose>Test la fin du LOB Oracle</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>lob->eof</methodname> <void /> </methodsynopsis> <para> <methodname>lob->eof</methodname> retourne &true; si le pointeur interne de LOB a atteint la fin du LOB, et &false; sinon. </para> <para> Voir aussi <function>oci_lob_size</function>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->