情形:两个表,cms_mode是主表,cms_model_field是子表,cms_model_field的model_id字段关联到cms_model的主键. # # Source for table cms_model # DROP TABLE IF EXISTS `cms_model`; CREATE TABLE `cms_model` ( `model_id` ) NOT NULL, `name` ) NOT NULL DEFAULT '', `title` ) NOT NULL DEF…