This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
Closes the cursor, allowing the statement to be executed again.
Return value
Type
Description
bool
columnCount(
)
:
int
Description
Returns the number of columns in the result set.
Returns null if the statement has no result set metadata.
Return value
Type
Description
int
The number of columns.
errorCode(
)
:
string
Description
Retrieves the error code, if any, associated with the last operation on
the statement handle.
Return value
Type
Description
string
error code.
errorInfo(
)
:
array
Description
Retrieves an array of error information, if any, associated with the
last operation on the statement handle.
Return value
Type
Description
array
fetch(
int
$style
= null,
int
$cursor
= null,
int
$offset
= null,
)
:
mixed
Description
Fetches a row from the result set.
Arguments
Name
Type
Description
Default
$style
int |
OPTIONAL Fetch mode for this fetch operation.
null
$cursor
int |
OPTIONAL Absolute, relative, or other.
null
$offset
int |
OPTIONAL Number for absolute or relative cursors.
null
Return value
Type
Description
mixed
Array, object, or scalar depending on fetch mode.
Tags
Name
Description
throws
nextRowset(
)
:
bool
Description
Retrieves the next rowset (result set) for a SQL statement that has
multiple result sets. An example is a stored procedure that returns
the results of multiple queries.