ALTER TABLE `subject` ADD COLUMNS fk_subject_grade_gradeid FOREIGN KEY (grade_id) REFERENCES grade(grade_id);
时间: 2024-05-24 15:12:11 浏览: 94
As an AI language model, I do not have access to your database to execute commands. However, the SQL syntax you provided is correct to add a foreign key constraint to the "subject" table referencing the "grade" table on the "grade_id" column.
阅读全文