Ben ürünleri tabloda ürünlerin bir ton var katılmak. Her ürünün bir product_specification vardır. Tüm product_specification.document_type_id öğelerini '2' değerine güncellemem gerekiyor. İşte SO birlikte incelendiğinde daha geldi ne:select..where..in ile birden çok satır güncellenmesi ve bir
update product_specifications
set product_specifications.document_type_id = 2
inner join products
on products.product_specification_id = product_specifications.id
where products.id in (
select p.id from products as p
inner join product_specifications as ps
on p.product_specification_id = ps.id
where p.store_front_id = 71
and ps.document_type_id = 1)
Ama bu bence
hakkında doktor? –