对于学生信息表:student(sno,sname,sex,age,dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是
A.UPDATE SET sname='张明'WHERE sname='张岩'
B.UPDATE student SET shame='张明'WHERE shame='张岩'
C.UPDATE student SET sname='张岩'
D.UPDATE student SET sname='张岩'WHERE sname='张明'
第1题:
对于学生信息表STUDENT(SNO, SNAME,SEX,AGE,DEPT)(STUDENT由学号SNO、姓名SNAME、性别SEX、年龄AGE、所在系DEPT 5个属性组成,其中SNO为主码),求年龄20~23岁之间的学生姓名和年龄,正确的语句是( )。A.SELECT SNAME,AGE FROM STUDENT WHERE AGE>20 AND AGE<23B. SELECT*FROM STUDENT WHERE AGE BETWEEN 20 AND 23C.SELECT SNAME,AGE FROM STUDENT WHERE AGE BETWEEN 20 AND 23D.以上均不正确
第2题:
对于学生信息表:student(sno,shame,sex,age,dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是
A.UPDATE SET sname='张明'WHERE sname='张岩'
B.UPDATE student SET sname='张明'WHERE sname='张岩'
C.UPDATE student SET sname='张岩'
D.UPDATE student SET sname='张岩'WHERE sname='张明'
第3题:
学生表student包含学号sno、学生姓名sname、性别sex、年龄age、所在院系dept、籍贯native等字段,其中age为整型,其余字段均为字符型。现插入一条计算机学院学生的记录,学号为s320078,姓名为张强,性别为男,年龄为20,下列语句错误的是________。
A.INSERT INTO tb_student (sno, sname, sex, age, dept, native) VALUES('s320078', '张强','男',20, '计算机');
B.INSERT INTO tb_student (sno, sname, sex, age, dept) VALUES('s320078', '张强','男',20, '计算机');
C.INSERT INTO tb_student VALUES('s320078', '张强','男',20, '计算机',null);
D.INSERT INTO tb_student (dept, sno, sname, sex, age) VALUES('计算机', 's320078', '张强','男',20);
第4题:
对于学生信息表:student(sno, sname, sex, age, dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是
A.UPDATE SET sname='张明'WHERE sname='张岩'
B.UPDATE student SET sname='张明' WHERE sname='张岩'
C.UPDATE student SET sname='张岩'
D.UPDATE student SET sname='张岩' WHERE sname='张明'
第5题:
对于学生信息表:student(sno,sname,sex,age,dept),如果把学生“张明”的姓名改;“张岩”,则正确的语句是
A.UPDATE SET sname='张明'WHERE sname='张岩'
B.UPDATE student SET sname='张明'WHERE sname='张岩'
C.UPDATE student SET sname='张岩'
D.UPDATE student SET sname='张岩'WHERE sname='张明'