• 2022-06-07
    假设表student中,有一条id=1的记录,现要求将其name修改为“itcast”,grade修改为98.5。下列选项中,正确的SQL语句是( )。
    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
  • B

    内容

    • 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&lt;=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;