已知学生基本信息student包括(xuehao学号,姓名name,…),查询所有姓刘的学生语句为“select * from student where name like '刘%'”
举一反三
- 已知学生基本信息student包括(xuehao学号,姓名name)
- 已知 student 表有姓名字段 name。若想查询所有姓“王”的学生,并且姓名由三个字符组成,则应使用的SQL 语句是 A: SELECT* FROM student WHERE name LIKE ‘王__’; B: SELECT* FROM student WHERE name LIKE ‘王%_’; C: SELECT* FROM student WHERE name LIKE ‘王%’; D: SELECT* FROM student WHERE name =’王__’;
- 已知学生基本信息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包括(xuehao学号,姓名name,性别sex,...别改为'女',正确的SQL语句为:( )
- 对于学生信息表:student(sno,sname,sex,age,dept),要查询所有刘姓学生的信息,正确的语句是 A: SELECT * FROM student WHERE sname LIKE'刘 * ' B: SELECT * FROM student WHERE sname LIKE'刘 $' C: SELECT * FROM student WHERE sname LIKE'刘%' D: SELECT * FROM student WHERE sname LIKE'刘&'