查询name字段中包含有“明”字的。

  select * from table1 where name like '%明%'

       查询name字段中以“李”字开头。

  select * from table1 where name like '李%'

        查询name字段中含有数字的。

  select * from table1 where name like '%[0-9]%'

       查询name字段中含有小写字母的。

  select * from table1 where name like '%[a-z]%'

这里我做的测试好像是'李*'查不到数据

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2021-06-14
猜你喜欢
  • 2022-12-23
  • 2021-04-22
  • 2022-12-23
  • 2021-11-16
  • 2021-06-29
  • 2021-11-09
相关资源
相似解决方案