student, read
int(4), float
CREATE TABLE `A12345678`.`student` (
`student_id` INT( 4 ) NOT NULL ,
`read` FLOAT NOT NULL ,
PRIMARY KEY ( `student_id` )
) ENGINE = MYISAM ;`read` FLOAT NOT NULL ,
PRIMARY KEY ( `student_id` )
match_history 資料表:
match_id, tutor_id, student_id, start_date, end_date
int(1), int(3), int(4), varchar(10), varchar(10),
CREATE TABLE `A12345678`.`match_history` (
`match_id` INT( 1 ) NOT NULL ,
`tutor_id` INT( 3 ) NOT NULL ,
`student_id` INT( 4 ) NOT NULL ,
`start_date` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ,
`end_date` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ,
PRIMARY KEY ( `match_id` ) ,
UNIQUE (
) ENGINE = MYISAM ;`tutor_id` INT( 3 ) NOT NULL ,
`student_id` INT( 4 ) NOT NULL ,
`start_date` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ,
`end_date` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ,
PRIMARY KEY ( `match_id` ) ,
UNIQUE (
`tutor_id` ,
`student_id`
)`student_id`
沒有留言:
張貼留言