Sembra che abbia risolto (sembra
)
codice:
delete ug,u
from usergroups as ug
left join users u on ug.idgruppo = u.user_group
where ug.idgruppo = 7
e sulle 5 tabelle
codice:
delete tab1,
tab2,
tab3,
tab4,
tab5
from tabella1 as tab1
left join tabella2 as tab2 on tab1.id = tab2.id
left join tabella3 as tab3 on tab2.id = tab3.id
left join tabella4 as tab4 on tab3.id = tab4.id
left join tabella5 as tab5 on tab4.id = tab5.id
where tab1.id = 112
Se esistono sistemi migliori (mantenendo le tabelle myisam) fatemi sapere.