字段a是编号 字段b是内容
1 6,2,13,5,11
2 1,3,4,5,13
3 1,5,13,9,11
4 1,3,4,6,8 select a from table where b 比如我查出编号来 条件是 bb字段中包含1,5,13, (这个条件,可能是1到10数不等)
如果上
如果 用link and 这样的查是不是会很慢 有没有什么快速的方式
1 6,2,13,5,11
2 1,3,4,5,13
3 1,5,13,9,11
4 1,3,4,6,8 select a from table where b 比如我查出编号来 条件是 bb字段中包含1,5,13, (这个条件,可能是1到10数不等)
如果上
如果 用link and 这样的查是不是会很慢 有没有什么快速的方式
charindex(',1,',b)>0 and charindex(',5,',b)>0 and charindex(',11,',b)>0