Cannot delete or update a parent row: a foreign key constraint fails
Cannot delete or update a parent row: a foreign key constraint fails (`sys`.`users`, CONSTRAINT `users_ibfk_1` FOREIGN KEY (`pid`) REFERENCES `provinces` (`id`))
其中provinces是父表users是子表,按着教程去DELETE会出现如标题所示的问题,上一段是整段ERROR的语句。