Home >Database >Mysql Tutorial >mysql为什么不能添加两个外键

mysql为什么不能添加两个外键

WBOY
WBOYOriginal
2016-06-06 09:35:401440browse

mysql

图片说明
报错1215

图片说明
两个我都要设成外键,board_id可以添加,userid就不行
字段的长度都是一样的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn