SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
-- Создание таблицы Class_Subject CREATE TABLE Class_Subject ( class_id INT, subject_id INT, PRIMARY KEY (class_id, subject_id), FOREIGN KEY (class_id) REFERENCES Classes(class_id) ON DELETE CASCADE, FOREIGN KEY (subject_id) REFERENCES Subjects(subject_id) ON DELETE CASCADE );

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear