轉自: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%'