executeSqlBatch
array public \Bitrix\Main\DB\Connection::executeSqlBatch( string $sqlBatch, boolean $stopOnError = false );
This non-static method parses the string containing multiple queries and executes the queries one by one.
Queries delimiter depends on database type.
Parameters
Parameter | Description | Version |
---|---|---|
$sqlBatch | String with queries, separated by database-specific delimiters.. | |
$stopOnError | Whether to return after the first error. |
See Also
- \Bitrix\Main\Db\SqlHelper->getQueryDelimiter
Examples
© «Bitrix24», 2001-2024