首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

这句如何写?获不到值

2012-04-05 
这句怎么写?获不到值%dimtotalsql selectcount(id)fromchangejobwherename &rs( worker )& sett

这句怎么写?获不到值
<%  
        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

热点排行