Zasto ne radi upit?
delete from firme, kategorija, potkategorija where (firme.potkategorijaID = potkategorija.potkategorijaID) and (potkategorija.kategorijaID = kategorija.kategorijaID) and (kategorija.kategorijaID=18);
1064 - You have an error in your SQL syntax;check the manual that corresponds to your MySQL server version for the syntax to use near 'where (firme.potkategorijaID = potkategorija.potkategorijaID)and(potkategorija' at line 1
DELETE [LOW_PRIORITY] [QUICK] [IGNORE]
FROM TBL_NAME[.*] [, TBL_NAME[.*] ...]
USING TABLE_REFERENCES
[WHERE WHERE_DEFINITION]
ili u prevodu postoje dva nacina da uradis to sto hoces
prvi:
delete table1, table2 from table1,table2 where nesto
i drugi:
delete from table1,table2 using table1, table2 where nesto
na prvi nacin za ovo tvoje ako hoces da obrises iz sve tri tabele
delete firme, kategorija, potkategorija from firme, kategorija, potkategorija where (firme.potkategorijaID = potkategorija.potkategorijaID) and (potkategorija.kategorijaID = kategorija.kategorijaID) and (kategorija.kategorijaID=18)
ako ne onda umesto ovog dela u crvenom napises imena samo onih tabela odakle hoces da brises