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%’