转自:https://blog.csdn.net/jumtre/article/details/38020389  。

1、contains

select * from students where contains(address,  'beijing')

但是,使用contains谓词有个条件,那就是列要建立索引,也就是说如果上面语句中students表的address列没有建立索引,那么就会报错。

2、instr

 select * from students where instr(address, 'beijing') > 0

3、like

select * from students where address like '%beijing%'

 

相关文章:

  • 2022-12-23
  • 2021-08-26
  • 2022-01-08
  • 2022-01-17
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2021-11-21
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案