A: UPDATE STUDENT SET NL=21
B: SET STUDENT UPDATE NL=20
C: UPDATE STUDENT SET NL=20
D: INSERT INTO STUDENT SET NL=20
举一反三
- 下面选项中,用于将表student中字段grade值更新为80的SQL语句是( ) A: ALTER TABLE student set grade=80; B: UPDATE student set grade=80 where grade=80; C: UPDATE student set grade=80 where grade<=80; D: UPDATE student set grade=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
- 下列选项中,用于将student 表中“grade " 字段的值修改为“80”的SQL 语句是( )。 A: ALTER TABLE student set grade=80; B: ALTER student set grade=80; C: UPDATE student set grade=80 where grade<;80; D: UPDATE student set grade=80;
- 下面选项中,能够更新表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;
- 用SQL语句将STUDENT表中字段“年龄”的值加1,可以使用的命令是( )。 A: REPLACE STUDENT 年龄 = 年龄 +1 B: REPLACE STUDENT 年龄 WITH 年龄 +1 C: UPDATE STUDENT SET 年龄 = 年龄+1 D: UPDATE STUDENT SET 年龄 WITH 年龄+1
内容
- 0
将所有计算机系学生的年龄增加1岁的正确语句是:( )。 A: UPDATE SET Student.Sage = Student .Sage + 1 WHERE Student.Sdept = 'CS'; B: UPDATE Student SET Sage + 1 WHERE Sdept = 'CS'; C: UPDATE Student SET Sage =Sage + 1 WHERE Sdept = 'CS'; D: UPDATE Student SET Sage += 1 WHERE Sdept = 'CS';
- 1
使用SQL语句将学生表STUDENT中的学生年龄AGE字段的值增加1岁,应该使用的命令是( )。 A: UPDATE SET AGE WITH AGE+1 B: REPLACE AGE WITH AGE+1 C: UPDATE STUDENT SET AGE=AGE+1 D: UPDATE STUDENT AGE WITH AGE+1
- 2
将STUDENT表中所有学生年龄AGE字段值增加1岁,应使用命令( ). A: REPLACE AGE WITH AGE+1 B: UPDATE SET AGE WITH AGE+1 C: UPDATE STUDENT AGE WITH AGE+1 D: UPDATE STUDENT SET AGE=AGE+1
- 3
更新student表id=1的记录,name值更新为”youjun”,grade值更新为98.5,下列选项中,能够完成上述功能的SQL语句是 A: UPDATE student set name=’youjun’ grade=98.5 where id=1; B: UPDATE student set name=’youjun’, grade=98.5 where id=1; C: UPDATE FROM student set name=’youjun’ ,grade=98.5 where id=1; D: UPDATE student Values name=’youjun’ grade=98.5 where id=1;
- 4
使用SQL命令将STUDENT中的学生年龄AGE字段值增加1岁,应该使用的命令是( )。 A: REPLACE AGE WITH AGE+1 B: UPDATE STUDENT AGE WITH AGE+1 C: UPDATE STUDENT SET AGE=AGE+1 D: UPDATE SET AGE WITH AGE+1