选取以逗号分隔的字段
SQL> select * from ss;DM NAME---------- ----------170 a10170 b170,160 &nbs...
用instr替换like提高效率
使用instr函数取代like查询,可提高效率,在海量数据中效果尤其明显。1.%a%方式:select * from pub_yh_bm twhere instr(t.chr_bmdm,'2')>0等份于:select * from pub_yh_bm twhere t.chr_bmdm like '%2%'2.%a方式...