报错:ERROR 3780 (HY000): Referencing column ‘user_id’ and referenced column ‘id’ in foreign key constraint ‘fk_user_id’ are incompatible.
原因:外键字段的约束条件与对应的主键约束条件不一致
我的情况:主键限制了无符号,外键忘记限制为无符号
报错:ERROR 3780 (HY000): Referencing column ‘user_id’ and referenced column ‘id’ in foreign key constraint ‘fk_user_id’ are incompatible.
原因:外键字段的约束条件与对应的主键约束条件不一致
我的情况:主键限制了无符号,外键忘记限制为无符号