当前位置: 代码迷 >> ASP >> 这句如何写?获不到值
  详细解决方案

这句如何写?获不到值

热度:100   发布时间:2012-04-05 12:42:40.0
这句怎么写?获不到值
<%  
        dim   total
        sql= "select   count(id)   from   changejob   where   name= "&rs( "worker ")& " "
set   total=conn.execute(sql)
total=total(0)
response.write "total= "&total& "worker= "&trim(rs( "worker "))& " "
%>
其中where   name= "&rs( "worker ")& " "   这句获不到值
怎么处理

------解决方案--------------------
sql= "select count(id) from changejob where name= ' " & rs( "worker ") & " ' "
set total=conn.execute(sql)
totalnum = total(0)
total.close
set total = nothing
conn.close
set conn = nothing
  相关解决方案