A: UPDATEstudentname=’youjun’grade=98.5whereid=1
B: UPDATEstudentsetname=’youjun’,grade=98.5whereid=1
C: UPDATEstudentsetname=’youjun’grade=98.5whereid=1
D: UPDATEFORMstudentsetname=’youjun’,grade=98.5whereid=1
举一反三
- 更新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;
- 假设表student中,有一条id=1的记录,现要求将其name修改为“huahua",grade修改为98.5.下列选项中,正确的SQL语句是( )。 A: UPDATE `student` SET `name`='huahua' `grade`=98.5 WHERE `id`=1 B: UPDATE `student` SET `name`='huahua', `grade`=98.5 WHERE `id`=1 C: UPDATE FOR `student` SET `name`='huahua', `grade`=98.5 WHERE `id`=1 D: UPDATE `student` `name`='huahua' `grade`=98.5 WHERE `id`=1
- 更新student表id=1的记录,name更新值为”youjun”,grade更新值为98.5,下列选项中,能够完成上述功能的SQL语句是
- 将student表中,id为1的学生的姓名(name)修改为张三,对应的sql是() A: UPDATETABLEstudentSETname=‘张三’WHEREid=1; B: updatestudentSETname=‘张三’WHEREid=1; C: updatetablestudentsetname=‘张三’whereid=1; D: UPDATESETname=‘张三’WHEREid=1;
- 向表中name字段添加值为’youjun’,grade字段值为55的正确SQL语句是
内容
- 0
下列选项中,用于将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;
- 1
He is a student of ______ . A: Grade One, Class Two B: the Class Two, Grade One. C: Class Two, Grade One D: Class Two, Grade 1
- 2
【单选题】5. 假定student表中有字段grade,grade代表分数,依次统计grade字段的最大值,最小值,平均值的SQL语句是 A. SELECT max(grade),min(grade),average(grade) FROM student; B. SELECT max(grade),min(grade),avg(grade) FROM student; C. SELECT min(grade),average(grade),max(grade) FROM student; D. SELECT min(grade),avg(grade),max(grade) FROM student;
- 3
下面选项中,用于将表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;
- 4
统计学生成绩中的最高分,下列语句正确的是 A: SELECT AVG(grade) FROM student; B: SELECT (SUM(grade) / Count(id)) FROM student; C: SELECT MAX(grade) FROM student; D: SELECT MIN(grade) FROM student;