multi delete

multi delete

am 14.06.2006 04:39:19 von Jared

Hi,

I have MySQL 5.0.22 and I can't seem to do multiple delete 100% on InnoDB
table with Foriegn Key.

What should the correct syntax be?

Re: multi delete

am 14.06.2006 05:25:33 von Jared

Found what I want - was USING + RIGHT OUTER


DELETE FROM `sale-equip`,`sale-rooms` USING `sale-equip`
RIGHT OUTER JOIN `sale-rooms` ON `sale-rooms`.id = `sale-equip`.idsale
WHERE `sale-rooms`.id = 64;