日期:2014-05-17  浏览次数:20830 次

提问,这3句话有错误吗?
sid=session( "user ")
sql= "select   *   from   user   where   [user]= "&sid& " "  
set   rs=conn.execute(sql)

为什么读不到数据库里的记录?

------解决方案--------------------
sql= "select * from user where [user]= "&sid& " "
改成:
sql= "select * from user where [user]= ' "&sid& " ' "

然后测试一下