CREATE TABLE account_user_address(
id INT NOT NULL AUTO_INCREMENT,
user_id INT NOT NULL,
address VARCHAR(255),
phone_no CHAR(11),
PRIMARY KEY(`id`),
FOREIGN KEY user_ref(user_id) REFERENCES account_user(id)
);
再运行
ALTER TABLE account_user_address DROP FOREIGN KEY user_ref;
题:不能掉落"user_ref":检查列/键存在
在键前user_ref account_user_address_ibfk_1