当前位置: 代码迷 >> ASP >> ,sql in
  详细解决方案

,sql in

热度:433   发布时间:2012-05-21 18:04:41.0
求助,sql in
select * from table where ziduan in (a,b,c,d)

如果 i="a,b,c,d"

要执行上面sql该如何写了

------解决方案--------------------
i="a,b,c,d"
i = "'" & replace(i, ",","','") & "'"
SQL = "select * from table where ziduan in (" & i & ")"
  相关解决方案