function StatementInterface::execute
Same name in other branches
- 9 core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::execute()
- 8.9.x core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::execute()
- 11.x core/lib/Drupal/Core/Database/StatementInterface.php \Drupal\Core\Database\StatementInterface::execute()
Executes a prepared statement.
Parameters
$args: An array of values with as many elements as there are bound parameters in the SQL statement being executed. This can be NULL.
$options: An array of options for this query.
Return value
bool TRUE on success, or FALSE on failure.
4 methods override StatementInterface::execute()
- StatementPrefetch::execute in core/
lib/ Drupal/ Core/ Database/ StatementPrefetch.php - StatementPrefetchIterator::execute in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php - StatementWrapper::execute in core/
lib/ Drupal/ Core/ Database/ StatementWrapper.php - StatementWrapperIterator::execute in core/
lib/ Drupal/ Core/ Database/ StatementWrapperIterator.php
File
-
core/
lib/ Drupal/ Core/ Database/ StatementInterface.php, line 35
Class
- StatementInterface
- Represents a prepared statement.
Namespace
Drupal\Core\DatabaseCode
public function execute($args = [], $options = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.