题目
BU.330.770.T2.FA25 Quiz 3- Requires Respondus LockDown Browser
单项选择题
Which of the following returns the book HANDCRANKED COMPUTERS in the results?
选项
A.SELECT * FROM books
WHERE title = 'H_N_%';
B.SELECT * FROM books
WHERE title LIKE 'H_N_C%T';
C.SELECT * FROM books
WHERE title LIKE 'H_N_C%';
D.SELECT * FROM books
WHERE title LIKE '_H%';
查看解析
标准答案
Please login to view
思路分析
To determine which option returns the book HANDCRANKED COMPUTERS, I’ll evaluate each SQL pattern against the target title.
Option 1: SELECT * FROM books
WHERE title = 'H_N_%';
This uses an equality comparison with a pattern literal, which is invalid SQL syntax for a LIKE pattern and would look for an exact string including the underscores and percent sign characters. Even if interpreted loosely, it would require the entire title to match ......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
类似问题
Question at position 26 What does this SQL statement return? SELECT name FROM students WHERE name LIKE '%to%'; all names with "to," such as Roberto and Tommy all names without "to," such as Samantha or Kathryn all names starting with "to," such as Tommy or Tony all names ending with "to," such as Roberto
Question at position 25 What does this SQL statement return? SELECT name FROM students WHERE name LIKE '%to%'; all names starting with "to," such as Tommy or Tony all names ending with "to," such as Roberto all names with "to," such as Roberto and Tommy all names without "to," such as Samantha or Kathryn
Which of the following is a possible output from the expression WHERE name = '%D%' 1. %D% 2. Dan 3. Little Dan
Which of the following commands does NOT include a customer with the first name 'BONITA' in the query results?
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!