1 2 3 4 5 6 7 8 9 10 | // show indexes of table SHOW CREATE TABLE news; // shows something like this ... CONSTRAINT `FK_3A51546D12469DE2` FOREIGN KEY (`category_id`) REFERENCES `news_category` (` id `), ... // drop index ALTER TABLE news DROP FOREIGN KEY FK_3A51546D12469DE2; |