[英]foreign key column showing empty in phpmyadmin
i create 2 table with a foreign key relation 我用外键关系创建2个表
but when i insert data into them foreign key column not showing the id of main table in phpmyadmin ! 但是当我向其中插入数据时,外键列未在phpmyadmin中显示主表的ID!
but it is working ok and showing key in phpstorm and sqlyog ! 但它工作正常,并在phpstorm和sqlyog中显示密钥!
why phpmyadmin cant show the number of key ?! 为什么phpmyadmin无法显示密钥数量?
You need to use the InnoDB engine, i think that as possible reason. 您需要使用InnoDB引擎,我认为这是可能的原因。
Ref: http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html 参考: http : //dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html
Thanks Amit 谢谢阿米特
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.