一般用substring函数截取出特定字段,如

--用户姓名第二个字是'大'字的
select from Users where SUBSTRING(UserName,2,1)='大'
第二种方法就是直接like模糊查询,看具体情况使用
select from Users where UserName like '%大%'
 
 
 

相关文章:

  • 2021-11-27
  • 2021-06-05
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
相关资源
相似解决方案