I am trying to insert multiple rows with select, something like this:
INSERT INTO Check( name, price, count, order_id) SELECT p.name, p.price, :count, :order FROM Product p WHERE p.id IN(:id1, :id2, :id3) The problem is that every :id1, :id2, ... has own :coun1, :count2, :count3.
id, :count is the 'count' of this product. I want to make a basket. But the data will be too big. So i want to optimize it, and insert in one query...