










--取某字段在某以逗号分隔的字符串中的记录
--select * from DictionaryClass where charindex(','+cast([id] as varchar)+',',','+'1,2'+',')>0
--取某字符串在某个以逗号分隔的字段中的记录
--select * from CurrentWord where id > 0 and charindex(',2,',','+cast(ClassID as varchar)+',')>0
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。