Documentation

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

ParameterDescriptionVersion
$sqlBatchString with queries, separated by database-specific delimiters..
$stopOnErrorWhether to return after the first error.

See Also

  • \Bitrix\Main\Db\SqlHelper->getQueryDelimiter

Examples



© «Bitrix24», 2001-2024
Up