请高手过来帮忙解决个问题,where a in (b)
aid=Trim(Request.QueryString("aid"))
set rsp=server.createobject("adodb.recordset")
sqlp="select * from Product where '"&aid&"' in (Product_Attribute) order by Product_id"
rsp.open sqlp,conn,1,1
注: aid=4 Product_Attribute字段类型为 varchar 值 4,5
查不出匹配的数据
将where '"&aid&"' in (Product_Attribute) 改成 where '"&aid&"' in (4,5)就可以