CREATE TABLE `il` (
`id` bigint(20) NOT NULL,
`il_adi` varchar(50) CHARACTER SET utf8 COLLATE utf8_turkish_ci DEFAULT NULL,
`slug` varchar(50) CHARACTER SET utf8 COLLATE utf8_turkish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `ilce` (
`id` bigint(20) NOT NULL,
`il_id` bigint(20) DEFAULT NULL,
`ilce_adi` varchar(50) CHARACTER SET utf8 COLLATE utf8_turkish_ci DEFAULT NULL,
`slug` varchar(50) CHARACTER SET utf8 COLLATE utf8_turkish_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
我有2張關於城市 - 州的表格。 ilce.il_id與關係il.id我的意思,Grocery Crud關係
SELECT * FROM il JOIN ilce ON il.id = ilce.il_id
我怎樣才能做到這一點與雜貨店關係界面污物?我怎樣才能改變set_relation函數?