MSSQLStatement Class Reference

Inherits StatementCommon.

List of all members.

Public Member Functions


Member Function Documentation

& MSSQLStatement::executeQuery ( $  sql,  $  fetchmode = null )

 

Executes the SQL query in this PreparedStatement object and returns the resultset generated by the query.

Parameters:
string $sql This method may optionally be called with the SQL statement.
int $fetchmode The mode to use when fetching the results (e.g. ResultSet::FETCHMODE_NUM, ResultSet::FETCHMODE_ASSOC).

Returns mixed object Creole::ResultSet on success, SQLException If there is an error executing the specified query.

Reimplemented from StatementCommon.

MSSQLStatement::getMoreResults ()

 

Gets next result set (if this behavior is supported by driver). Some drivers (e.g. MSSQL) support returning multiple result sets -- e.g. from stored procedures.

This function also closes any current restult set.

Default behavior is for this function to return false. Driver-specific implementations of this class can override this method if they actually support multiple result sets.

Returns boolean True if there is another result set, otherwise false.

Reimplemented from StatementCommon.


This file is part of the Creole[php4] library.


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS