mysql - how to make a multi delete query -
hello people have question query;
delete our_work, our_work_images, our_work_portf_img our_work.id = 6 , our_work_portf_img.portf_id = 6 , our_work_portf_img.img_id = our_work_images.img_id;
i want delete relations first table "our_work" pair table named "our_wrok_porft_img" , image table "our_work_images"
edit;
i solved problem adding cascade on foreign key
delete our_work our_work.id = 1;
Comments
Post a Comment