首页 > 试题广场 >

要查询表user中name字段中,第2个字母为A的所有数据,

[单选题]
要查询表user中name字段中,第2个字母为A的所有数据,请选择正确的查询语句。( )
  • select *  from user where name like ’_A%’;
  • select *  from user where name=’_A%’;
  • select *  from user where name like as ’_A%’;
  • select *  from user where name like ’?A*’;
模糊查询like
发表于 2021-03-12 15:18:59 回复(0)
模糊查询用like 未知的用_ %
发表于 2021-02-09 14:44:43 回复(0)
select * from user where name like '_A%' 从user表中查询name字段中第二个字为A的名字的用户 _和%都表示通配符 _匹配一个字符串 %不限
发表于 2021-10-11 18:56:07 回复(0)
“-”表示一个字符 “%”表示0~n个字符
发表于 2021-02-15 17:50:35 回复(0)