cvs: phpdoc-zh /reference/oci8/functions ocicolumnname.xml

From: Date: Sun, 04 Jan 2004 03:20:27 +0000
Subject: cvs: phpdoc-zh /reference/oci8/functions ocicolumnname.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1826@lists.php.net to get a copy of this message
yincheng Sat Jan 3 22:20:27 2004 EDT Added files: /phpdoc-zh/reference/oci8/functions ocicolumnname.xml Log: add new files Index: phpdoc-zh/reference/oci8/functions/ocicolumnname.xml +++ phpdoc-zh/reference/oci8/functions/ocicolumnname.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- $Author: yincheng $ --> <!-- EN-Revision: 1.6 Maintainer: yincheng Status: ready --> <!-- splitted from ./en/functions/oci8.xml, last change in rev 1.15 --> <refentry id="function.ocicolumnname"> <refnamediv> <refname>ocicolumnname</refname> <refpurpose>·µ»ØÁÐÃû</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>string</type><methodname>ocicolumnname</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <simpara> <function>ocicolumnname</function> ·µ»ØÏàÓ¦ÁÐÐòºÅµÄÁÐÃû£¬ÁÐÐòºÅ´Ó1¿ªÊ¼¼ÆËã¡£ </simpara> <para> <example> <title><function>ocicolumnname</function></title> <programlisting role="php"> <![CDATA[ <?php $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn, "select * from emp"); OCIExecute($stmt); echo "<table border=\"1\">"; echo "<tr>"; echo "<th>Name</th>"; echo "<th>Type</th>"; echo "<th>Length</th>"; echo "</tr>"; $ncols = OCINumCols($stmt); for ($i = 1; $i <= $ncols; $i++) { $column_name = OCIColumnName($stmt, $i); $column_type = OCIColumnType($stmt, $i); $column_size = OCIColumnSize($stmt, $i); echo "<tr>"; echo "<td>$column_name</td>"; echo "<td>$column_type</td>"; echo "<td>$column_size</td>"; echo "</tr>"; } echo "</table>\n"; OCIFreeStatement($stmt); OCILogoff($conn); ?> ]]> </programlisting> </example> </para> <simpara> ²Î¼û <function>ocinumcols</function>£¬ <function>ocicolumntype</function>£¬ ºÍ <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 -->

« previous php.doc.zh (#1826) next »