调试J2EE项目的时候悲剧地发现MySQL默认的MyISAM引擎不支持外键,仅有InnoDB引擎支持。也就意味着不能实现“on delete cascade”,得在建表的时候使用“ENGINE=InnoDB”了。
参考资料:MySQL外键的使用
This entry was posted on 星期六, 19 12 月, 2009 at 00:52 and is filed under 数据库. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
Comments are closed.