I am having trouble with mysql accepting FOREIGN KEY REFERENCES and the referential integrity ON DELETE CASCADE and ON DELETE RESTRICT.Can you help? Thank You
CREATE TABLE user (
user_email varchar(50) NOT NULL,
nf_num int(6),
com_num int(6),
f_num int(6),
PRIMARY KEY (user_email)
FOREIGN KEY nf_num REFERENCES non_order),
ON DELETE CASCADE),
FOREIGN KEY com_num REFERENCES comment),
ON DELETE CASCADE),
FOREIGN KEY f_num REFERENCES order),
ON DELETE RESTRICT)
);
CREATE TABLE user (
user_email varchar(50) NOT NULL,
nf_num int(6),
com_num int(6),
f_num int(6),
PRIMARY KEY (user_email)
FOREIGN KEY nf_num REFERENCES non_order),
ON DELETE CASCADE),
FOREIGN KEY com_num REFERENCES comment),
ON DELETE CASCADE),
FOREIGN KEY f_num REFERENCES order),
ON DELETE RESTRICT)
);