2
I’m making an application and need to relate two tables, logically, could use foreign keys... The problem is that the database I am using only allows Myisam tables that do not support foreign keys like Innodb. So, how could you get around this problem without having to use Innodb tables?
That is, you need to make sure that at all points of your application that make some kind of modification in the tables involved will be guaranteed the maintenance of referential integrity. In practical terms I would choose to change the engine to Innodb, it is much simpler.
– user4552
Not at all points, you can use
Triggers
in order to centralize this check. See: Enforcing Foreign Keys Programmatically in Mysql– ramaral