1.contains,contains用法如下:
select * from students where contains(address, ‘beijing’)
但是,使用contains謂詞有個條件,那就是列要建立索引,也就是說如果上面語句中students表的address列沒有建立索引,那么就會報錯。
2.instr,instr用法如下:
select * from students where instr(address, ‘beijing’) > 0
3.like,like用法如下:
select * from students where address like ‘%beijing%’