sql="select item.*,solution.*,reason.* from item,solution,reason where item.solutionid=solution.solutionid and item.reasonid=reason.reasonid" and reasonid="&cint(trim(request("id")))&" 如果是接收字符的话就要加上单引号.....
sou.asp
set rs=server.createobject("adodb.recordset")
sql="select * from a where aa like '%"+request("key")+"%' order by aaa desc"
rs.open sql,conn,1,1