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

From: Date: Sun, 04 Jan 2004 03:21:31 +0000
Subject: cvs: phpdoc-zh /reference/oci8/functions ocifetchinto.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1830@lists.php.net to get a copy of this message
yincheng Sat Jan 3 22:21:31 2004 EDT Added files: /phpdoc-zh/reference/oci8/functions ocifetchinto.xml Log: add new files Index: phpdoc-zh/reference/oci8/functions/ocifetchinto.xml +++ phpdoc-zh/reference/oci8/functions/ocifetchinto.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- $Author: yincheng $ --> <!-- EN-Revision: 1.9 Maintainer: yincheng Status: ready --> <!-- splitted from ./en/functions/oci8.xml, last change in rev 1.2 --> <refentry id="function.ocifetchinto"> <refnamediv> <refname>ocifetchinto</refname> <refpurpose>»ñÈ¡ÏÂÒ»Ðе½Ò»¸öÊý×é</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>int</type><methodname>ocifetchinto</methodname> <methodparam><type>resource</type><parameter>stmt</parameter></methodparam> <methodparam><type>array</type><parameter>&amp;result</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <para> <function>ocifetchinto</function> »ñÈ¡ SELECT µÄÏÂÒ»Ðе½ <parameter>result</parameter> Êý×é¡£ <function>ocifetchinto</function> ½«¸²¸Ç <parameter>result</parameter> ÒÔǰµÄÄÚÈÝ¡£ÔÚĬÈÏÇé¿öÏ£¬ <parameter>result</parameter> ½«º¬ÓÐËùÓÐ·Ç &null; ÁеÄÊý×é¡£¸ÃÊý×é´Ó 0 ¿ªÊ¼¼ÆÊý¡£ </para> <para> <parameter>mode</parameter> ²ÎÊýÔÊÐíÄã¸Ä±äĬÈϵÄÐÐΪ¡£ ¿ÉÒÔ¼òµ¥µÄ½«±êÖ¾Ïà¼ÓÀ´Ê¹Óöà¸ö±êÖ¾(ÁÐÈ磺 OCI_ASSOC+OCI_RETURN_NULLS)¡£ ±êÖ¾ÁбíÈçÏ£º <simplelist> <member> <constant>OCI_ASSOC</constant> ·µ»ØÒ»¸öÏà¹ØÊý×é¡£ </member> <member> <constant>OCI_NUM</constant> ·µ»ØÒ»¸ö´Ó 0 ¿ªÊ¼µÄÊý×ÖÊý×é¡£(ĬÈÏÇé¿ö) </member> <member> <constant>OCI_RETURN_NULLS</constant> ·µ»Ø¿ÕÁС£ </member> <member> <constant>OCI_RETURN_LOBS</constant> ·µ»Ø LOB µÄÖµ¶ø²»ÊÇËüµÄÃèÊö·û¡£ </member> </simplelist> </para> <para> <example> <title>Ò»¸ö¼òµ¥µÄ <function>ocifetchinto</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php $conn = ocilogon("username", "password"); $query = "SELECT apples FROM oranges"; $statement = OCIParse ($conn, $query); OCIExecute ($statement); while (OCIFetchInto ($statement, $row, OCI_ASSOC)) { echo $row['apples']; } ?> ]]> </programlisting> </example> </para> <para> ²Î¼û <function>ocifetch</function> ºÍ <function>ociexecute</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 -->

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