多个值以,分隔存储在一个字段精确匹配查询 sql语句

http://hi.baidu.com/zaqx000/blog/item/ffd1dc097ab3f189d0581b66.html


select * from tablename where charindex(','+'3'+',',','+name+',')>0

posted @ 2012-07-26 15:26  事理  阅读(1235)  评论(0编辑  收藏  举报