upsert()
upsert(string $table, array $insertFieldValues, array $updateFieldValues = array(), string $primaryKey = null) : integer
Updates data on a table using custom SQL syntax
Parameters
| string |
$table |
|
| array |
$insertFieldValues |
|
| array |
$updateFieldValues |
|
| string |
$primaryKey |
|
Returns
integer