比如查询包含2的:
select * from xxx_table 枣宴棚where id like '2,%' or id 凳则like '%,2,%' or id like '祥磨%,2'
完全森卖陪用不了索引:
select xx.* from xxx_table 此蠢xx, b where b.col like to_char(xx.id)||',%'
or b.col like '%,'||to_char(xx.id)||'配氏,%'
or b.col like '%,'||to_char(xx.id)
这启闷尺个不能用 in ,罩闹应该用 like
select * from xxx_table xx where xx.id like '%1%' or xx.id like '%2%'悄高 or xx.id like '%3%'