PDO::query
(no version information, might be only in CVS)
PDO::query -- Executes an SQL statement, returning a result set as a PDOStatement objectDescription
object PDO::query ( string statement )| Warning |
|
This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk. |
PDO::query() prepares and executes an SQL statement in a single function call, returning the result set (if any) returned by the statement as a PDOStatement object.
For a SELECT statement that you need to issue multiple times, prepare a PDOStatement object with PDO::prepare() and issue the statement with PDOStatement::execute().
