It is necessary that everything is removed, and not the first. That is, I have an array of two values (id and parent_id, this is a unique index consisting of two values), in a single query I need to delete all the elements of the array.
DELETE FROM table WHERE (id=4 AND parent_id = 6) OR (id=5 AND parent_id = 6) OR (id=5 AND parent_id=12)
(id, parent_id) IN ((4, 6), (5, 6), (5, 12))But it is necessary to measure seven times. - D-side