删除student表的“平均成绩”字段的正确SQL命令是( )。
A.DELETE TABLE student DELETE COLUMN平均成绩
B.ALTER TABLE student DELETE COLUMN平均成绩
C.ALTER TABLE student DROP COLUMN平均成绩
D.DELETE TABLE student DROP COLUMN平均成绩
第1题:
删除student表的“平均成绩”字段的正确SQL命令是
A.DELETE TABLE student DELETE COLUMN平均成绩
B.ALTER TABLE student DELETE C0LUMN平均成绩
C.ALTER TABLE student DROP COLUMN平均成绩
D.DELETE TABLE student DROP COLUMN平均成绩
第2题:
为choose表添加外键约束,约束名为choose_student_fk,外键为student_no,连接到 student表的stuednt_no字段,以下命令正确的是______。
A.alter table choose add constraint choose_student_fk FOREIGN KEY (student_no) ;
B.alter table choose add constraint choose_student_fk FOREIGN KEY (student_no) REFERENCES student(stuednt_no);
C.alter table choose add constraint choose_student_fk FOREIGN KEY (student_no) REFERENCES student;
D.alter table choose add constraint choose_student_fk REFERENCES student(stuednt_no);
第3题:
若要删除STUDENT表中的“性别”字段,应使用的SQL命令为()。
A.ALTER TABLE STUDENT DROP 性别
B.ALTER TABLE STUDENT DELETE 性别
C.DELETE TABLE STUDENT DROP 性别
D.DROP STUDENT ALTER ERASE 性别
第4题:
给student表增加一个“平均成绩”字段(数值型,总宽度6,2位小数)的SQL命令是( )。
A.ALTER TABLE student ADD平均成绩N(6,2)
B.ALTER TABLE student ADD平均成绩D(6,2)
C.ALTER TABLE student ADD平均成绩E(6,2)
D.ALTER TABLE student ADD平均成绩Y(6,2)
第5题:
为choose表添加外键约束,约束名为choose_student_fk,外键为student_no,参照 student表的st_no字段,以下SQL语句片段正确的是()。
A.constraint choose_student_fk FOREIGN KEY (student_no);
B.constraint choose_student_fk FOREIGN KEY (student_no) REFERENCES student(st_no);
C.constraint choose_student_fk FOREIGN KEY (st_no) REFERENCES student(student_no);
D.constraint choose_student_fk REFERENCES student(st_no);