姓名、性别、年龄。要在表S中删除一个属性“年龄”,可选用的SQL语句是()。
A: UPDATE S Age
B: DELETE Age from S
C: ALTER TABLE S ‘Age’
D: ALTER TABLE S DROP Age
A: UPDATE S Age
B: DELETE Age from S
C: ALTER TABLE S ‘Age’
D: ALTER TABLE S DROP Age
举一反三
- 若要删除基本表S中的Age列,应该选用的SQL语句是( )。 A: DELETE Age FROM S B: ALTER TABLE DROP Age C: UPDATE S Age D: ALTER TABLE S ‘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;
- 设已有关系Student(Sno, Sname, Sex, Age),若欲删除该表中的属性Age,恰当的SQL语句是( )。 A: DELETE Age from Student B: UPDATE Student Age C: ALTER TABLE Student(Age) D: ALTER TABLE Student DROP Age
- 若有关系St (NO,NAME,SEX,AGE),删除其中AGE字段的SQL语句是 ( )。 A: ALTER TABLE St DROP AGE B: DROP AGE FROM St C: ALTER TABLE St DELETE AGE D: DELETE AGE FROM St
- 使用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