修改student表中学号为2015001的学生的姓名为“张三”
A: update student set sname=’ 张三’ where sid=’2015001’
B: alter table student alter sname=’ 张三’ where sid=’2015001
C: update student set sname=”张三” where sid=’2015001’
D: update student set sname=张三 where sid=’2015001’
A: update student set sname=’ 张三’ where sid=’2015001’
B: alter table student alter sname=’ 张三’ where sid=’2015001
C: update student set sname=”张三” where sid=’2015001’
D: update student set sname=张三 where sid=’2015001’
举一反三
- 修改student表中学号为2015001的学生的姓名为“张三”,语句是()。 A: update student set sname=’ 张三’ where sid=’2015001’ B: update student set sname=张三 where sid=’2015001’ C: update student set sname=”张三” where sid=’2015001’ D: alter table student alter sname=’ 张三’ where sid=’2015001’
- 修改表Student中姓名Name为“张三”的学生的专业Major改为“计算机” A: ALTER TABLE Student SET Name='张三' WHERE Major='计算机' B: UPDATE Student SET Name='张三' WHERE Major='计算机' C: UPDATE Student SET Major='计算机' WHERE Name='张三' D: ALTER TABLE Student SET Major='计算机' WHERE Name='张三'
- 在学生关系student(sid,sname……)中,student的属性分别表示学号和姓名,若要查询学号为19170201的学生姓名,下列SQL语句正确的是( )。Ⅰ.SELECT sname FROM student WHERE sid LIKE '19170201'Ⅱ.SELECT sname FROM student WHERE sid LIKE= '19170201'Ⅲ.SELECT sname FROM student WHERE sid='19170201' A: Ⅰ、Ⅱ B: Ⅰ、Ⅲ C: Ⅱ、Ⅲ D: Ⅰ、Ⅱ、Ⅲ
- 已知学生基本信息student包括(xuehao学号,姓名name,性别sex,…),将学号为'201011001'学生的姓名改为'张三',同时性别改为'女',正确的SQL语句为:( )。 A: update student set name='张三',sex='女' where xuehao='201011001' B: update student set name='张三'or sex='女' where xuehao='201011001' C: update student set name='张三' sex='女' where xuehao='201011001' D: update student set name='张三' and sex='女' where xuehao='201011001'
- 对于学生信息表: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=’张明’