alter table questioncommitResult add CONSTRAINT fk_questionCommit_person foreign key(uid) REFERENCES person(id
);
用的类型一样, 字符集默认也是一样的,但是漏了一点,person表我用的是 bigint unsigned, 而 questioncommitResult 我用 bigint ,所以报错
建表时 也设置 bigint unsigned
alter table questioncommitResult add CONSTRAINT fk_questionCommit_person foreign key(uid) REFERENCES person(id
);
用的类型一样, 字符集默认也是一样的,但是漏了一点,person表我用的是 bigint unsigned, 而 questioncommitResult 我用 bigint ,所以报错
建表时 也设置 bigint unsigned