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

请大家帮忙看看这个sql语句错在那里?解决方案

2012-02-09 
请大家帮忙看看这个sql语句错在那里?????wp.execute( selectnamefromcourseevaluationwhereclassid &Cl

请大家帮忙看看这个sql语句错在那里?????
wp.execute( "select   name   from   courseevaluation   where   classid= "   &   ClassID   & "   and     username= ' "   &   EvaluationUserNum   &   " ' "   &   "   and   section= ' "&   EvaluationSection   & " ' ")

说明:wp为我定义的类
查询表:courseevaluation
表项:classid       username     section
              11                   v1111       1-2
            (数值型)   (字符型)   (字符型)

郁闷!看不出错在那?大家帮忙看看,谢谢了.

[解决办法]
wp.execute( "select name from courseevaluation where classid= " & ClassID & " and username= ' " & EvaluationUserNum & " ' and section= ' "& EvaluationSection & " ' ")
[解决办法]
提示什么错误呀?

[解决办法]
wp.execute( "select name from courseevaluation where classid= " & ClassID & " and username= ' " & EvaluationUserNum & " ' and section= ' "& EvaluationSection & " ' ")
这个

热点排行