13、以下语句查找student表中所有电话号码(列名为telephone)的第一位为8或6,第三位为0的电话号码。 SELECT telephone FROM student WHERE telephone LIKE '[8,6]_0%'

13、以下语句查找student表中所有电话号码(列名为telephone)的第一位为8或6,第三位为0的电话号码。 SELECT telephone FROM student WHERE telephone LIKE '[8,6]_0%'


参考答案和解析
SELECT * FROM student

相关考题:

当前目录下有student和coure两个表文件,要求查找同时选修了课程号为"0001"和"0002"的学生姓名,语句为: SELECT 姓名 FROM student,coure; WHERE student.学号=coure.学号; AND 课程号="0001"; AND 姓名【 】; (SELECT 姓名 FROM student, coure; WHERE student.学号=coure.学号; AND 课程号="0002")

使用SQL语句从表STUDENT中查询所有姓王的同学的信息,正确的命令是:A)SELECT*FROM STUDENT WHERE LEFT(姓名,2)=“王”B)SELECT*FROM STUDENT WHERE RIGHT(姓名,2)=“王”C)SELECT*FROM STUDENT WHERE TRIM(姓名,2)=“王”D)SELECT*FROM STUDENT WHERE STR(姓名,2)=“王”

根据SQL标准,下面哪句语句能够找出年龄最小的同学?其中age为学生表student中的年龄字段,sno为学生的学号。()A select max(age) from studentB select sno from student where age = max(age)C select sno from student having age = max(age)D select sno from student a where a.age

根据SQL标准,要查询表student中所有年龄age小于所有学生的平均年龄的记录,下面哪条语句适用?()A select * from student where ageB select * from student having ageC select * from student a where a.ageD select * from student a where (select avg(b.age) from student b ) >= a.age

对于数据表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是______。A.SELECT sno,sname FROM student WHERE gade=NULLB.SELECT sno,sname FROM student WHERE grade IS NULLC.SELECT sno,age FROM student WHERE grade IS NULLD.SELECT mo,age FROM student WHERE grade=NULL

使用SQL语句从表STUDENT中查询所有姓王的同学的信息,正确的命令是:______。A.SELECT*FROM STUDENT WHERE LEFT(姓名,2)=“王”B.SELECT*FROM STUDENT WHERE RIGHT(姓名,2)=“王”C.SELECT*FROM STUDENT WHERE TRIM(姓名,2)=“王”D.SELECT*FROM STUDENT WHERE STR(姓名,2)=“王”

对于学生信息表: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'刘'

设ABC表的A列存储电话号码信息,则查询不是以7开头的所有电话号码的查询语句是( ) A select A from ABC where A is not ‘%7’B select A from ABC where A like ‘%7%’C select A from ABC where A not like ‘7%’D select A from ABC where A like ‘[1-6]%’

SELECT * FROM  Student  WHERE  Sname  LIKE  ’[张李刘]%’ 语句可以查找姓张、李、刘的学生。A对B错

SELECT * FROM  Student  WHERE  Sname  LIKE  ’张_’语句中的’张_’ 用于查找姓张的学生。A对B错

要找出籍贯是湖北或湖南的学生的姓名和性别,下述SQL语句正确的有哪三项()。A、SELECT Sname,Ssex FROM Student WHERE Sdept=(‘湖南’,‘湖北’);B、SELECT Sanme,Ssex FROM Student WHERE Sdept=’湖南’ORSdept=’湖北’;C、SELECT Sname,Ssex FROM Student WHERE Sdep tLIKE‘湖%’D、SELECT Sname,Ssex FROM Student WHERE Sdept LIKE‘%湖’;E、SELECT Sname,Ssex FROM Student WHERE Sdept IN(‘湖南’,‘湖北’);

设student表中存放了学生的信息,要从student表中查出姓名(sname)的第二个字是“光”或"明"的学生的信息,正确的查询语句为: select * from student where()A、sname LIKE ’_[^光明]%’B、.sname LIKE ’_^光明%’C、sname LIKE ’_光明%’D、sname LIKE ’_[光明]%’

查询student表中的所有非空email信息,以下语句正确的是()。A、Select email from student where email !=nullB、Select email from student where email not is nullC、Select email from student where email nullD、Select email from student where email is not null

若要检索“Student”数据表中的所有记录和字段,则SQL语句为()A、Selec t姓名,性别 From StudentB、Select*From StudentC、Select 姓名,性别 From Student Where 姓名=“张山“D、Select*From Student Where 姓名=“张山“

数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键为Number。要求查询所有男同学信息,下列哪个SQL语句是正确的?()A、Select* From Student Where Sex=’男’B、Select* From Student Where Number NotIn(Select Number From Student Where Sex=’男’)C、Select* From Student Where NumberIn(Select Numbe rFrom Student Where Sex=’男’)D、Select* From Student Where Sex’男’

数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中年龄介于20和30岁之间的数据,下列哪个SQL语句是正确的?()A、Select* From Student Where Age=20 ANDAge=30B、Select* From Student Where Age=20 ANDAge=30C、Select* From Student Where Age BET WENN 20AND30D、Select* From Student Where Age=20Age=30"

查找yuangong表中所有电话号码(列名:telephone)的第一位为8或6,第三位为0的电话号码()A、SELECT telephone FROM yuangong WHERE telephone LIKE’[8,6]%0*’B、SELECT telephone FROM yuangong WHERE telephone LIKE’(8,6)*0%’C、SELECT telephone FROM yuangong WHERE telephone LIKE’[86]_0%’D、SELECT telephone FROM yuangong WHERE telephone LIKE’[86]_0*’

数据库中有一张表名称为Student,列ZZMM表示学生政治面貌,学生的政治面貌可能为“党员”、“团员”和群众,要求查询政治面貌为“党员”和“团圆的学生信息”,下列哪个SQL语句是正确的()A、Select* From Student Where ZZMM=’党员’And ZZMM=’团员’B、Select* From Student Where ZZMM=’党员’Or ZZMM=’团员’C、Select* From Student Where ZZMM="党员"OrZ ZMM="团员"D、Select* From Student Where ZZMM IN(’党员’,‘团员’)

查找student表中所有电话号码(列名:telephone)的第一位为8或6,第三位为0的电话号码()。A、SELECT telephone FROM student WHERE telephoneLIKE’[8,6]%0*’B、SELECT telephone FROM student WHERE telephoneLIKE’(8,6)*0%’C、SELECT telephone FROM student WHERE telephoneLIKE’[8,6]_0%’D、SELECT telephone FROM student WHERE telephoneLIKE’[8,6]_0*’

查询student表中的所有非空email信息,以下语句正确的是()A、Select email from student where email!=nullB、Select email from student where emailnotisnullC、Select email from student where emailnullD、Select email from student where emailisnotnull

查询名字中第2个字为“阳”的学生的姓名和学号,正确的是()A、Select Sname,Sno from student where Sname like‘_阳%’;B、Select Sname,Sno from student where Sname like‘阳%’;C、Select Sname,Sno from student where Sname like‘_阳’;D、Select Sname,Sno from student where Sname like‘阳_%’;

单选题查询student表中的所有非空email信息,以下语句正确的是()ASelect email from student where email!=nullBSelect email from student where emailnotisnullCSelect email from student where emailnullDSelect email from student where emailisnotnull

单选题BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)查询Customer表中所有客户的信息,要求显示CustomerCode、Name、Hometown和Telephone字段信息。SQL语句:SELECT()FROM CustomerA*BALLCCustomerCode、Name、Hometown、TelephoneDCustomerCode,Name,Hometown,Telephone

单选题查找yuangong表中所有电话号码(列名:telephone)的第一位为8或6,第三位为0的电话号码()ASELECT telephone FROM yuangong WHERE telephone LIKE’[8,6]%0*’BSELECT telephone FROM yuangong WHERE telephone LIKE’(8,6)*0%’CSELECT telephone FROM yuangong WHERE telephone LIKE’[86]_0%’DSELECT telephone FROM yuangong WHERE telephone LIKE’[86]_0*’

多选题数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键为Number。要求查询所有男同学信息,下列哪个SQL语句是正确的?()ASelect* From Student Where Sex=’男’BSelect* From Student Where Number NotIn(Select Number From Student Where Sex=’男’)CSelect* From Student Where NumberIn(Select Numbe rFrom Student Where Sex=’男’)DSelect* From Student Where Sex’男’

单选题查找authors表中的所有电话号码的首位为4,第二位为0或1的电话号码()。ASELECT phone FROM authors WHERE phone LIKE’4[1,0]%’BSELECT phone FROM authors WHERE phonein’4[^10]%’CSELECT phone FROM authors WHERE phone LIKE’4_[1,0]%’DSELECT phone FROM authors WHERE phone between’41%’and’40%’

单选题查找student表中所有电话号码(列名:telephone)的第一位为8或6,第三位为0的电话号码()。ASELECT telephone FROM student WHERE telephoneLIKE’[8,6]%0*’BSELECT telephone FROM student WHERE telephoneLIKE’(8,6)*0%’CSELECT telephone FROM student WHERE telephoneLIKE’[8,6]_0%’DSELECT telephone FROM student WHERE telephoneLIKE’[8,6]_0*’

判断题SELECT * FROM  Student  WHERE  Sname  LIKE  ’张_’语句中的’张_’ 用于查找姓张的学生。A对B错