试题详情
- 单项选择题 You need to design a student registration database that contains several tables storing academic information. The STUDENTS table stores information about a student. The STUDENT_GRADES table stores information about the student's grades. Both of the tables have a column named STUDENT_ID. The STUDENT_ID column in the STUDENTS table is a primary key. You need to create a foreign key on the STUDENT_ID column of the STUDENT_GRADES table that points to the STUDENT_ID column of the STUDENTS table. Which statement creates the foreign key?()
A、CREATE TABLE student_grades (student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk REFERENCES (student_id) FOREIGN KEY student (student_id));
B、CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id));
C、CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT FOREIGN KEY (student_id) REFERENCES student (student_id));
D、CREATE TABLE student_grades(student_id NUMBER(12),semester_end DATE, gpa NUMBER(4,3), CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES students (student_id));
- D
关注下方微信公众号,在线模考后查看
热门试题
- You are the DBA for
- 如果一个数据库举例(instance)失
- Which statemen
- You have enabled res
- Which two code fragm
- For which two constr
- 对于ORACLE PL/SQL标识符(
- Which method would y
- ()像表一样由列组成,其查询方式与表相同
- You just c
- 假设需要在Windows的命令行工具中使
- You executed&e
- In Recovery Manager
- Which three statemen
- You want
- You have enabled th
- The NLS_SORT
- 以下关于PL/SQL变量类型的说法正确的
- Examine the&en
- The datafiles&