之前经常使用like %D%的方式做模糊查询,可使用替代方案instr函数。据说效率差别比较大。 例如:select * from tg_customer t where instr(t.account,'11')>0