when i put this in phpmyadmin i get errors... can anyone look over it and find a mistake..
CREATE TABLE Student {
SID int NOT NULL default,
SNAME varchar(200) NOT NULL default,
ADDRESS text NOT NULL default,
POST_CODE varchar(10) NOT NULL default,
PHOTO mediumblob NOT NULL default,
Primary Key (SID)
} ENGINE=INNODB
CREATE TABLE Course {
CID int NOT NULL default,
CNAME varchar(200) NOT NULL default,
DEPARTMENT text NOT NULL default,
Primary Key (CID)
} ENGINE=INNODB
CREATE TABLE Student-Course {
SID int NOT NULL default,
CID int NOT NULL default,
GRADE varchar(200) NOT NULL default,
COMMENTS text NOT NULL default,
Primary Key (SID,CID),
FOREIGN KEY (CID) REFERENCES Course (CID) ON UPDATE CASCADE ON DELETE CASCADE,
FOREIGN KEY (SID) REFERENCES Student (SID) ON UPDATE CASCADE ON DELETE CASCADE
} ENGINE=INNODB