以下( )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 '*'
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 '*'
举一反三
- 下列语句()能够查询所有英语类课程的信息。 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语句可以查询出课程名中只包含“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 '_大数据_'
- 在MySQL中,要查找课程表Courses中课程名cname以“数据”开头(如数据结构、数据库系统等)的所有课程记录,下列SQL语句表示正确的是( )。 A: select * from Courses where cname like “数据”; B: select * from Courses where cname like“%数据”; C: select * from Courses where cnamr like “数据%”; D: select * from Courses where cnamr 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='数据库基础')