⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.oci-bind-by-name.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Binds the PHP variable to the Oracle placeholder</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.oci-bind-array-by-name.html">oci_bind_array_by_name</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.oci-cancel.html">oci_cancel</a></div> <div class="up"><a href="ref.oci8.html">OCI8 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.oci-bind-by-name" class="refentry"> <div class="refnamediv">  <h1 class="refname">oci_bind_by_name</h1>  <p class="verinfo">(PHP 5, PECL oci8:1.1-1.2.4)</p><p class="refpurpose"><span class="refname">oci_bind_by_name</span> &mdash; <span class="dc-title">Binds the PHP variable to the Oracle placeholder</span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>oci_bind_by_name</b></b></span>    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$statement</tt></span>   , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$ph_name</tt></span>   , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <tt class="parameter reference">&$variable</tt></span>   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$maxlength</tt></span>   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$type</tt></span>  ]] )</div>  <p class="para rdfs-comment">   Binds the PHP variable <i><tt class="parameter">variable</tt></i> to the Oracle   placeholder <i><tt class="parameter">ph_name</tt></i>.  Whether it will be used for   input or output will be determined at run-time and the necessary   storage space will be allocated.   </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">statement</tt></i></span>     <dd>      <p class="para">       An OCI statement.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">ph_name</tt></i></span>     <dd>      <p class="para">       The placeholder.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">variable</tt></i></span>     <dd>      <p class="para">       The PHP variable.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">maxlength</tt></i></span>     <dd>      <p class="para">       Sets the maximum length for the bind. If you set it to -1, this       function will use the current length of <i><tt class="parameter">variable</tt></i>       to set the maximum length.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">type</tt></i></span>     <dd>      <p class="para">       If you need to bind an abstract datatype (LOB/ROWID/BFILE) you       need to allocate it first using the       <a href="function.oci-new-descriptor.html" class="function">oci_new_descriptor()</a> function. The       <i><tt class="parameter">length</tt></i> is not used for abstract datatypes       and should be set to -1. The <i><tt class="parameter">type</tt></i> parameter       tells Oracle which descriptor is used. Default to <b><tt>SQLT_CHR</tt></b>.       Possible values are:       <ul class="itemizedlist">        <li class="listitem">         <p class="para">          <b><tt>SQLT_FILE</tt></b> - for BFILEs;         </p>        </li>        <li class="listitem">         <p class="para">          <b><tt>SQLT_CFILE</tt></b> - for CFILEs;         </p>        </li>        <li class="listitem">         <p class="para">          <b><tt>SQLT_CLOB</tt></b> - for CLOBs;         </p>        </li>        <li class="listitem">         <p class="para">          <b><tt>SQLT_BLOB</tt></b> - for BLOBs;         </p>        </li>        <li class="listitem">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -