中国大学MOOC: 给定查询语句:SELECT cname FROM tb_course WHERE cname LIKE Da_a%;下列选项中不满足条件的查询结果是______。
举一反三
- 下列语句()能够查询所有英语类课程的信息。 A: SELECT * FROM Course WHERE cname LIKE ‘%英语’ B: SELECT * FROM Course WHERE cname LIKE ‘%英语%’ C: SELECT * FROM Course WHERE cname LIKE ‘_英语_’ D: SELECT * FROM Course WHERE cname LIKE ‘*英语*’
- 以下( )SQL语句可以查询出课程名中只包含“_design”字符串的课程信息。 A: select * from course where cname like '%_design%' B: select * from course where cname like '%\_design%' escape '\' C: select * from course where cname like '% D: _design%' escape ' E: ' F: select * from course where cname like '%*_design%' escape '*'
- 以下______SQL语句可以查询出课程名中只包含“C_数据”字符串的课程信息。( ) A: SELECT * FROM cj_table WHERE CNAME LIKE '%C\_数据%'; B: SELECT * FROM cj_table WHERE CNAME LIKE '%C*_数据%' ESCAPE '*'; C: SELECT * FROM cj_table WHERE CNAME LIKE '%C D: _数据%' ESCAPE ' E: '; F: SELECT * FROM cj_table WHERE CNAME LIKE '%C?_数据%' ESCAPE '?';
- Hive中的谓词like用于匹配特定的子串,能从courses表中查询书名包含,包含“大数据”的课程信息的是:( ) A: select * from courses where Cname like '%大数据%' B: select * from courses where Cname like '%大%数%据%' C: select * from courses where Cname like '_大_数_据_' D: select * from courses where Cname like '_大数据_'
- 查询选修了'数据库基础'课程的同学的学号,和这些同学选修的全部课程号和分数.select sno,cno,gradefrom ______________________ A: sc where sno in (select sno from sc join course on sc.cno=course.cno where cname='数据库基础') B: sc join course on sc.cno=course.cno where cname='数据库基础' C: sc where sno in (select sno from course where cname='数据库基础') D: sc where cno in (select cno from course where cname='数据库基础')