SQLserver 中用in查询一个字符串中所包含的id,id为int类型。除了在SQLserver中切割字符串外还有什么方法,求大神指点。。。
sql server 2005以上用正则 select id from table where RegexMatch("1,2,3,4", "\d+", id)
int 类型还用切啥