• 2022-06-15
    下面哪条语句可以查询姓“赵”并且年龄等于22岁的用户,请问用哪条语句?( )
    A: Select * From tbAddress Where strName="赵" And intAge=22
    B: Select * From tbAddress Where strName like "赵%" And intAge="22"
    C: Select * From tbAddress Where strName like "赵%" And intAge=22
    D: Select * From tbAddress Where strName like "%赵%" And intAge=22
  • C

    举一反三

    内容

    • 0

      若“学生”表中有“学号”.“姓名”.“出生日期”等字段,要查询年龄在22岁以上的学生的记录的SQL语句是( )。 A: SELECT * FROM 学生 WHERE ((DATE()-[出生日期])/365>;22) B: SELECT * FROM 学生 WHERE((DATA()-[出生日期])/365>;22) C: SELECT * FROM 学生 WHERE((YEAR()-[出生日期])>;=22) D: SELECT * FROM 学生 WHERE [出生日期]>; E: 1992-01-01

    • 1

      查询姓“李”的学生的所有信息 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 ‘%李%

    • 2

      从“员工”表的“姓名”字段中找出名字包含“玛丽”的人,下面哪条select语句正确()。 A: Select * from 员工 where 姓名 =’_玛丽_’ B: Select * from 员工 where 姓名 =’%玛丽_’ C: Select * from 员工 where 姓名 like ‘_玛丽%’ D: Select * from 员工 where 姓名 like ‘%玛丽%&rsquo

    • 3

      下面查询语句中哪条查询语句会查询出所有包含"李"的数据? A: select * from student where name limit‘%李%’ B: select * from student where name =‘%李%’ C: select * from student where name like‘%李%’ D: select * from student where name in‘%李%’

    • 4

      若“学生”表中有“学号”、“姓名”、“出生日期”等字段,要查询年龄在22岁以上的学生的记录,正确的SQL语句是( )。 A: Select * From 学生 Where [出生日期]> B: 1992-01-01 C: D: Select * From 学生 Where ((Date()-[出生日期])/365>22) E: Select * From 学生 Where ((Year()-[出生日期])>22) F: Select * From 学生 Where ((Data()-[出生日期])/365>22)