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