使用SOL语句将学生表S中年龄(AGE)大于30岁的记录删除,正确的命令是()。
A: DELETE FOR AGE>30
B: DELETE FROM S WHERE AGE>30
C: DELETE S FOR AGE>30
D: DELETE S WHERE AGE > 3
A: DELETE FOR AGE>30
B: DELETE FROM S WHERE AGE>30
C: DELETE S FOR AGE>30
D: DELETE S WHERE AGE > 3
举一反三
- 使用SQL语句将学生表S中年龄(AGE)大于30岁的记录删除,正确的命令是() A: DELETE FOR AGE>30 B: DELETE FROM S WHERE AGE>30 C: DELETE S FOR AGE>30 D: DELETE S WHERE AGE>30
- 学生表student中,将年龄小于30岁的记录删除,下面的语句正确的是( )。 A: DELETE FROM student FOR age<;30 B: DELETE FROM student WHERE age<;30 C: DELETE TABLE student WHERE age<;30 D: DELETE FROM student HAVING age<;30
- 假定有学生关系S,结构为S(SID, SNAME, AGE),其中SID为学号,SNAME为姓名,AGE为年龄。查询所有比“李军”年龄大的学生的姓名、年龄,正确的SQL语句是( )。 A: SELECT SNAME, AGE FROM S WHERE AGE > ( SELECT AGE FROM S WHERE SNAME = '李军' ) B: SELECT SNAME, AGE FROM S WHERE AGE >( SNAME= '李军' ) C: SELECT SNAME, AGE FROM S WHERE AGE > ( SELECT AGE WHERE SNAME='李军' ) D: SELECT SNAME, AGE FROM S WHERE AGE>李军.AGE
- 学生表s有4个字段分别为:sno,sname,sex,age,要在表s中删除字段age,可选用的SQL语句是( )。 A: delete age from s; B: alter table s delete age; C: update s age; D: alter table s drop age;
- 三个表学生表S、课程表C 和学生选课表 SC,它们的结构如下: S(S#,SN,SEX,AGE,DEPT)<br/>C(C#,CN)<br/>SC(S#,C#,GRADE)<br/>其中:S#为学号,SN 为姓名,SEX 为性别,AGE 为年龄,DEPT 为系别,C#为课程号,CN 为课程名,GRADE 为成绩。<br/>检索所有比“王华”年龄大的学生姓名、年龄和性别。正确的 SELECT 语句是( )。 A: SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE FROM S WHERE SN=’王华’) B: SELECT SN,AGE,SEX FROM S WHERE SN=’王华’ C: SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE WHERE SN=’王华’) D: SELECT SN,AGE,SEX FROM S WHERE AGE>王华.AGE