D7 API documentation
What's New
Modules
Main module in old core
Connection constructor
add
clearCaches
commitTransaction
connect
createIndex
createPrimaryIndex
disableQueryExecuting
disconnect
dropColumn
dropTable
enableQueryExecuting
executeSqlBatch
getAffectedRowsCount
getDbHost
getDbLogin
getDbName
getDisabledQueryExecutingDump
getIndexName
getNodeId
getSqlHelper
getTableField
getTableFields
getTracker
getType
getVersion
isIndexExists
isTableExists
query
queryExecute
queryScalar
renameTable
rollbackTransaction
setConnectionResourceNoDemand
setNodeId
setTracker
startTracker
startTransaction
stopTracker
truncateTable
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
Up