batchReplace() public method
Generates a batch REPLACE SQL statement. For example, $sql = $queryBuilder->batchReplace('idx_user', ['id', 'name', 'age'], [
[1, 'Tom', 30],
[2, 'Jane', 20],
[3, 'Linda', 25],
], $params);
Note that the values in each row must match the corresponding column names.
public string batchReplace ( $index, $columns, $rows, &$params )$index string
The index that new rows will be replaced. $columns array
The column names $rows array
The rows