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

From: Date: Sun, 04 Jan 2004 03:20:45 +0000
Subject: cvs: phpdoc-zh /reference/oci8/functions ocicolumnsize.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1827@lists.php.net to get a copy of this message
yincheng Sat Jan 3 22:20:45 2004 EDT Added files: /phpdoc-zh/reference/oci8/functions ocicolumnsize.xml Log: add new files Index: phpdoc-zh/reference/oci8/functions/ocicolumnsize.xml +++ phpdoc-zh/reference/oci8/functions/ocicolumnsize.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.ocicolumnsize"> <refnamediv> <refname>ocicolumnsize</refname> <refpurpose>·µ»ØÁеĴóС</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>int</type><methodname>ocicolumnsize</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>mixed</type><parameter>column</parameter></methodparam> </methodsynopsis> <para> <function>ocicolumnsize</function> ·µ»ØÓÉ Oracle ¸ø¶¨µÄÁдóС¡£ ÄãÄܹ»Ê¹ÓÃÁÐÐòºÅ»òÕßÁÐÃû×÷Ϊ <parameter>col</parameter> ²ÎÊý¡£ÁÐÐòºÅ´Ó1¿ªÊ¼¼ÆË㣬ÁÐÃûʹÓôóд×Öĸ¡£ </para> <para> <example> <title><function>ocicolumnsize</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>"; OCIFreeStatement($stmt); OCILogoff($conn); ?> ]]> </programlisting> </example> </para> <simpara> ²Î¼û <function>ocinumcols</function> ºÍ <function>ocicolumnname</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 (#1827) next »