למישהו יש מושג למה זה לא עובד?
create table grades( student_id char(9), course_id char(9), semester char(30), term char(1), grade int(3), grade_sum int(3), primary key (student_id, course_id), foreign key (student_id) references students(student_id), foreign key (course_id) references courses(course_id) CHECK(term='A' OR term='B'));
|
זה כותב את השגיאה הבאה:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CHECK(term='A' OR term='B'))' at line 11