A: DELETE FOR AGE>30
B: DELETE FROM S WHERE AGE>30
C: DELETE S FOR AGE>30
D: DELETE S WHERE AGE>30
举一反三
- 使用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
- 学生表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有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;
- 从student表删除年龄大于=30的记录的正确SQL命令是( )。 A: DELETE FOR年龄>30 B: DELETE FROM student WHERE年龄>30 C: DELETE student FOR年龄>30 D: DELETE student WHERE年龄>30
- 姓名、性别、年龄。要在表S中删除一个属性“年龄”,可选用的SQL语句是()。 A: UPDATE S Age B: DELETE Age from S C: ALTER TABLE S ‘Age’ D: ALTER TABLE S DROP Age
内容
- 0
若要删除基本表S中的Age列,应该选用的SQL语句是( )。 A: DELETE Age FROM S B: ALTER TABLE DROP Age C: UPDATE S Age D: ALTER TABLE S ‘Age’
- 1
从student表删除年龄大于30的记录的正确SQL命令是 A: A) DELETE FOR 年龄>30 B: B) DELETE FROM student WHERE 年龄>30 C: C) DELETE student FOR 年龄>30 D: D) DELETE student WHERE 年龄>30
- 2
从student表删除年龄大于30的记录的正确SQL命令是______。 A: DELETE FOR年龄>30 B: DELETE FROM student WHERE年龄>30 C: DELETE student FOR年龄>30 D: DELETE student WHILE年龄>30
- 3
假定有学生关系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
- 4
从student表删除年龄大于30的记录的正确SQL命令是 A: DELETE FOR年龄>30 B: DELETE FROM student WHERE年龄>30 C: DEL ETE student FOP年龄>30 D: DELETE student WF IERE年龄>30