单项选择题
查找authors表中的所有电话号码的首位为4,第二位为0或1的电话号码()。
A.SELECT phone FROM authors WHERE phone LIKE’4[1,0]%’
B.SELECT phone FROM authors WHERE phonein’4[^10]%’
C.SELECT phone FROM authors WHERE phone LIKE’4_[1,0]%’
D.SELECT phone FROM authors WHERE phone between’41%’and’40%’
相关考题
-
单项选择题
查询student表中的所有非空email信息,以下语句正确的是()。
A.Select email from student where email !=null
B.Select email from student where email not is null
C.Select email from student where email<>null
D.Select email from student where email is no tnull -
单项选择题
执行SQL语句:select*,score*0.5+20 as 加权成绩from grade where(score*0.5+20<60orderbyscore*0.5+20,以下描述是正确的()。
A.错误提示:orderby子句中不能出现表达式。
B.正确执行,显示grade表中各列值,按照score由低到高排序。
C.正确执行,显示grade表中各列值,以及加权成绩列,按照score由低到高排序。
D.错误提示:where子句中不能出现表达式。 -
单项选择题
SQL server提供了一些字符串函数,以下说法错误的是()。
A.selectright(’hello’,3)返回值为:hel
B.selectltrim(rtrim(’hello’))返回值为:hello(前后都无空格)
C.selectreplace(’hello’,’e’,’o’)返回值为:hollo
D.selectlen(’hello’)返回值为:5
