下面选项中,能够更新表student中id值小于4的SQL语句是
A: ALTERTABLEstudentwhereid<4;
B: UPDATEstudentsetgrade=100whereid<4;
C: UPDATEstudentsetgrade=100whereid<=4;
D: UPDATETablestudentsetgrade=100whereid<4;
A: ALTERTABLEstudentwhereid<4;
B: UPDATEstudentsetgrade=100whereid<4;
C: UPDATEstudentsetgrade=100whereid<=4;
D: UPDATETablestudentsetgrade=100whereid<4;
举一反三
- 下面选项中,能够更新表student中id值小于4的SQL语句是() A: ALTER TABLE student where id<4; B: UPDATE student set grade=100 where id<4; C: UPDATE student set grade=100 where id<=4; D: UPDATE Table student set grade=100 where id<4;
- 下面选项中,能够更新表student中id值小于4的SQL语句是()
- 将student表中,id为1的学生的姓名(name)修改为张三,对应的sql是() A: UPDATETABLEstudentSETname=‘张三’WHEREid=1; B: updatestudentSETname=‘张三’WHEREid=1; C: updatetablestudentsetname=‘张三’whereid=1; D: UPDATESETname=‘张三’WHEREid=1;
- 下面选项中,用于将表student中字段grade值更新为80的SQL语句是 A: ALTERTABLEstudentsetgrade=80; B: UPDATEstudentsetgrade=80wheregrade=80; C: UPDATEstudentsetgrade=80wheregrade<=80; D: UPDATEstudentsetgrade=80;
- 把student表中id字段值小于3的记录,将这些记录的grade字段值都更新为100() A: UPDATE FROM student SET grade=100 where id<;3 B: UPDATE student SET grade=100 where id<;3 C: UPDATE student SET grade=100 D: UPDATE INTO student SET grade=100 where id<;3