Doctrine\DBAL\Connection::executeQuery
Executes an, optionally parameterized, SQL query.
If the query is parameterized, a prepared statement is used. If an SQLLogger is configured, the execution is logged.
Signature
public function executeQuery(string
$query,
[QueryCacheProfile
$params = null,
[QueryCacheProfile
$types = null,
[QueryCacheProfile
$qcp = null]]] )
Parameters
$query
— string- The SQL query to execute.
$params
— array- The parameters to bind to the query, if any.
$types
— array- The types the previous parameters are in.
$qcp
— Doctrine\DBAL\Cache\QueryCacheProfile
Returns
- Statement
- The executed statement.