简体   繁体   English

PHPMyAdmin:MyISAM中的多对多关系(无外键支持)

[英]PHPMyAdmin: Many-to-Many relations in MyISAM (without foreign key support)

I've discovered that my host may only support MyISAM and not InnoDB. 我发现我的主机可能仅支持MyISAM,而不支持InnoDB。 Thus, I lack built-in foreign key support. 因此,我缺乏内置的外键支持。 How would I then implement a many-to-many relationship with three tables in PHPMyAdmin? 然后如何在PHPMyAdmin中与三个表实现多对多关系? The only solution is to enter in the relations manually through MySQL queries, correct? 唯一的解决方案是通过MySQL查询手动输入关系,对吗?

I would implement it in the same way as you would using Innodb but ensure data integrity in the application layer. 我将以与使用Innodb相同的方式来实现它,但要确保应用程序层中的数据完整性。 If you have a good data abstraction layer then this should be fairly simple to implement. 如果您具有良好的数据抽象层,则实现起来应该相当简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM