Documentation

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

How to update:
Array("column" => $value)[]
ParameterDescriptionVersion
$tableNameTable name
$primaryFieldsPrimary key columns list:
Array("column")[]
$insertFieldsWhat to insert:
Array("column" => $value)[]
$updateFields

Examples



© «Bitrix24», 2001-2024
Up