pdostatement.setattribute.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 68 行

HTML
68
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Set a statement attribute</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="pdostatement.rowcount.html">PDOStatement->rowCount</a></div> <div class="next" style="text-align: right; float: right;"><a href="pdostatement.setfetchmode.html">PDOStatement->setFetchMode</a></div> <div class="up"><a href="class.pdostatement.html">PDOStatement</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="pdostatement.setattribute" class="refentry"> <div class="refnamediv">  <h1 class="refname">PDOStatement-&gt;setAttribute</h1>  <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">PDOStatement-&gt;setAttribute</span> &mdash; <span class="dc-title">   Set a statement attribute  </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>PDOStatement::setAttribute</b></b></span>    ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$attribute</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">$value</tt></span>   )</div>  <p class="para rdfs-comment">   Sets an attribute on the statement. Currently, no generic attributes are set but only driver specific:   <ul class="itemizedlist">    <li class="listitem"><p class="para"><i>PDO::ATTR_CURSOR_NAME</i>     (Firebird and ODBC specific):     Set the name of cursor for <i>UPDATE ... WHERE CURRENT OF</i>.    </p></li>   </ul>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="pdo.getattribute.html" class="function" rel="rdfs-seeAlso">PDO::getAttribute()</a></li>    <li class="member"><a href="pdo.setattribute.html" class="function" rel="rdfs-seeAlso">PDO::setAttribute()</a></li>    <li class="member"><a href="pdostatement.getattribute.html" class="function" rel="rdfs-seeAlso">PDOStatement::getAttribute()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="pdostatement.rowcount.html">PDOStatement->rowCount</a></div> <div class="next" style="text-align: right; float: right;"><a href="pdostatement.setfetchmode.html">PDOStatement->setFetchMode</a></div> <div class="up"><a href="class.pdostatement.html">PDOStatement</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

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