D7 API documentation
What's New
Modules
Main module in old core
addSecondsToDateTime
castToChar
convertDateField
convertDatetimeField
convertStringField
forSql
formatDate
getAliasLength
getCharToDateFunction
getColumnTypeByField
getConcatFunction
getConverter
getCurrentDateFunction
getCurrentDateTimeFunction
getDateToCharFunction
getDatetimeToDateFunction
getFieldByColumnType
getIsNullFunction
getLeftQuote
getLengthFunction
getQueryDelimiter
getRightQuote
getSubstrFunction
getTopSql
prepareMerge
softCastTextToChar
prepareMerge
array public \Bitrix\Main\DB\MssqlSqlHelper::prepareMerge( string $tableName, array $primaryFields, array $insertFields, array $updateFields );
This non-static method builds string for SQL MERGE command for the specified table.
Parameters
Parameter | Description | Version |
---|---|---|
$tableName | Table name | |
$primaryFields | Array of primary keys in list of column types:
Array("column")[] | |
$insertFields | Array of what to insert:
Array("column" => $value)[] | |
$updateFields | Array of what to update:
Array("column" => $value)[] |
Examples
© «Bitrix24», 2001-2024
Up