📄 class.pdostatement.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>The PDOStatement class</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="pdo.setattribute.html">PDO::setAttribute</a></div> <div class="next" style="text-align: right; float: right;"><a href="pdostatement.bindcolumn.html">PDOStatement->bindColumn</a></div> <div class="up"><a href="book.pdo.html">PDO</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1 class="title">The PDOStatement class</h1> <div class="partintro"> <div id="pdostatement.intro" class="section"> <h2 class="title">Introduction</h2> <p class="para"> Represents a prepared statement and, after the statement is executed, an associated result set. </p> </div> <div id="pdostatement.synopsis" class="section"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"><b class="classname">PDOStatement</b></div> <div class="classsynopsisinfo"> <span class="ooclass"> <b class="classname">PDOStatement</b> </span> <span class="oointerface">implements <span class="interfacename">Traversable</span> </span> {</div> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="pdostatement.bindcolumn.html" class="function">PDOStatement::bindColumn</a></b></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">$column</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">&$param</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$type</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$maxlen</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">$driverdata</tt></span> ]]] )</div><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="pdostatement.bindparam.html" class="function">PDOStatement::bindParam</a></b></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">$parameter</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">$data_type</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$length</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">$driver_options</tt></span> ]]] )</div><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="pdostatement.bindvalue.html" class="function">PDOStatement::bindValue</a></b></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">$parameter</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> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$data_type</tt></span> ] )</div><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="pdostatement.closecursor.html" class="function">PDOStatement::closeCursor</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><a href="pdostatement.columncount.html" class="function">PDOStatement::columnCount</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><b><a href="pdostatement.errorcode.html" class="function">PDOStatement::errorCode</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><a href="pdostatement.errorinfo.html" class="function">PDOStatement::errorInfo</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="pdostatement.execute.html" class="function">PDOStatement::execute</a></b></span> ([ <span class="methodparam"><span class="type">array</span> <tt class="parameter">$input_parameters</tt></span> ] )</div><div class="methodsynopsis dc-description"> <span class="type">mixed</span> <span class="methodname"><b><a href="pdostatement.fetch.html" class="function">PDOStatement::fetch</a></b></span> ([ <span class="methodparam"><span class="type">int</span> <tt class="parameter">$fetch_style</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$cursor_orientation</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$cursor_offset</tt></span> ]]] )</div><div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><a href="pdostatement.fetchall.html" class="function">PDOStatement::fetchAll</a></b></span> ([ <span class="methodparam"><span class="type">int</span> <tt class="parameter">$fetch_style</tt></span> [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$column_index</tt></span> [, <span class="methodparam"><span class="type">array</span> <tt class="parameter">$ctor_args</tt></span> ]]] )</div><div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><b><a href="pdostatement.fetchcolumn.html" class="function">PDOStatement::fetchColumn</a></b></span> ([ <span class="methodparam"><span class="type">int</span> <tt class="parameter">$column_number</tt></span> ] )</div><div class="methodsynopsis dc-description"> <span class="type">mixed</span> <span class="methodname"><b><a href="pdostatement.fetchobject.html" class="function">PDOStatement::fetchObject</a></b></span> ([ <span class="methodparam"><span class="type">string</span> <tt class="parameter">$class_name</tt></span> [, <span class="methodparam"><span class="type">array</span> <tt class="parameter">$ctor_args</tt></span> ]] )</div><div class="methodsynopsis dc-description"> <span class="type">mixed</span> <span class="methodname"><b><a href="pdostatement.getattribute.html" class="function">PDOStatement::getAttribute</a></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$attribute</tt></span> )</div><div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><a href="pdostatement.getcolumnmeta.html" class="function">PDOStatement::getColumnMeta</a></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$column</tt></span> )</div><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="pdostatement.nextrowset.html" class="function">PDOStatement::nextRowset</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><a href="pdostatement.rowcount.html" class="function">PDOStatement::rowCount</a></b></span> ( <span class="methodparam">void</span> )</div><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="pdostatement.setattribute.html" class="function">PDOStatement::setAttribute</a></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><div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><a href="pdostatement.setfetchmode.html" class="function">PDOStatement::setFetchMode</a></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$mode</tt></span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="pdostatement.bindcolumn.html">PDOStatement->bindColumn</a> 鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -