标签:
一般有两种方法,以表plan_data_manage_product的gc_routing字段为例,判断gc_routing 是否含有“B1”
1. 最常想到的 like方法:
select * from plan_data_manage_product t where t.gc_routing like ‘%B1%‘;
2.“B1”是一个变量时:
select * from plan_data_manage_product t where instr(t.gc_routing, ‘B1‘) > 0 ;
标签:
原文地址:http://my.oschina.net/twenty/blog/380353