cvs: phpdoc-zh /reference/oracle/functions ora-bind.xml
| From: | Xiao shengwen | Date: | Mon, 04 Nov 2002 09:12:48 +0000 |
| Subject: | cvs: phpdoc-zh /reference/oracle/functions ora-bind.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-781@lists.php.net to get a copy of this message | ||
yincheng Mon Nov 4 04:12:48 2002 EDT
Added files:
/phpdoc-zh/reference/oracle/functions ora-bind.xml
Log:
ok
Index: phpdoc-zh/reference/oracle/functions/ora-bind.xml
+++ phpdoc-zh/reference/oracle/functions/ora-bind.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: yincheng $ -->
<!-- EN-Revision: 1.2 Maintainer: yincheng Status: ready -->
<!-- splitted from ./en/functions/oracle.xml, last change in rev 1.2 -->
<refentry id="function.ora-bind">
<refnamediv>
<refname>Ora_Bind</refname>
<refpurpose>°ó¶¨Ò»¸ö PHP ±äÁ¿µ½Ò»¸ö Oracle ²ÎÊý</refpurpose>
</refnamediv>
<refsect1>
<title>ÃèÊö</title>
<methodsynopsis>
<type>int</type><methodname>ora_bind</methodname>
<methodparam><type>int</type><parameter>cursor</parameter></methodparam>
<methodparam><type>string</type><parameter>PHP variable
name</parameter></methodparam>
<methodparam><type>string</type><parameter>SQL parameter
name</parameter></methodparam>
<methodparam><type>int</type><parameter>length</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>type</parameter></methodparam>
</methodsynopsis>
<para>
Èç¹û°ó¶¨³É¹¦£¬·µ»Ø &true; £¬·ñÔò·µ»Ø
&false;¡£´íÎóµÄϸ½ÚÄܹ»Ê¹ÓÃ
<function>ora_error</function> ºÍ <function>ora_errorcode</function>
º¯ÊýÈ¡µÃ¡£
</para>
<para>
¸Ãº¯Êý½«Ò»¸ö PHP ±äÁ¿ÓëÒ»¸ö SQL ²ÎÊý°ó¶¨¡£
SQL ²ÎÊý±ØÐëʹÓà ":name" µÄÐÎʽ¡£Ôڸú¯Êý¿ÉÑ¡µÄ
type ²ÎÊýÖУ¬¿ÉÒÔ¶¨Òå SQL ²ÎÊýÀàÐÍ¡£SQL
²ÎÊýµÄÀàÐÍÊÇÊäÈë/Êä³ö (0£¬Ä¬ÈÏ)¡¢ÊäÈë(1) ¡¢Êä³ö (2)
ÖеÄÒ»ÖÖ¡£´Ó PHP
3.0.1 ¿ªÊ¼£¬¿ÉÒÔʹÓó£Á¿ ORA_BIND_INOUT£¬ORA_BIND_IN ºÍ
ORA_BIND_OUT ´úÌæÊý×Ö¡£
</para>
<para>
ora_bind ±ØÐëÔÚ <function>ora_parse</function> Ö®ºóºÍ
<function>ora_exec</function> ֮ǰµ÷Óá£ÊäÈëÖµÓÉ°ó¶¨µÄ PHP
±äÁ¿Ö¸ÅÉ¡£ÔÚµ÷ÓÃ
<function>ora_exec</function> º¯ÊýÖ®ºó£¬Èç¹û°ó¶¨µÄ PHP
±äÁ¿ÓÐÖµÊä³ö£¬Ôò
PHP ±äÁ¿½«µÈÓÚ¸ÃÖµ¡£
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
ora_parse($curs, "declare tmp INTEGER; begin tmp := :in; :out := tmp; :x := 7.77; end;");
ora_bind($curs, "result", ":x", $len, 2);
ora_bind($curs, "input", ":in", 5, 1);
ora_bind($curs, "output", ":out", 5, 2);
$input = 765;
ora_exec($curs);
echo "Result: $result<BR>Out: $output<BR>In: $input";
?>
]]>
</programlisting>
</informalexample>
</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
-->