DROP TABLE IF EXISTS referred, refer;
CREATE TABLE referred (
id int PRIMARY KEY AUTO_INCREMENT
);
CREATE TABLE refer (
id int PRIMARY KEY AUTO_INCREMENT,
id_referred int NOT NULL,
CONSTRAINT id_referred FOREIGN KEY (id_referred) REFERENCES referred (id)
);
DROP TABLE referred;
ERROR HY000: [table][remove] a column that references the table exists: <refer.id_referred> -> <referred>
DROP TABLE refer;
DROP TABLE referred;
