-1
是否有可能使用外鍵的表枚舉? CREATE TABLE wiele
( id_wiele
INT(11)NOT NULL AUTO_INCREMENT, nazwa_wiele
CHAR(50)NOT NULL DEFAULT '0', PRIMARY KEY(id_wiele
) UNIQUE INDEX id
(id_wiele
) ) COLLATE = 'latin1_swedish_ci' ENGINE = InnoDB AUTO_INCREMENT = 4;
CREATE TABLE `gotowe` (
`id` INT(11) NOT NULL,
`parametr` ENUM('Y','N','D') NOT NULL,
`parametry` SET('A','B','C') NOT NULL,`enter code here`
PRIMARY KEY (`id`),
UNIQUE INDEX `id` (`id`)
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB;
當你嘗試它時發生了什麼? – EJP