Suppose you have a table
I often need to increase the counter count at a different name.
But in order not zombirovanii a bunch of mysql queries continuously, I'm on the backend pre-collect a scope of records to insert/update:
'name1' => 235,
'name2' => 1,
'name4' => 3,
Question: is it possible in one query to insert the name of the array if they do not exist, and if exist add the count to the specified value (235, 1, 3, ... to each his own)?