主题:  循环执行sql语句问题

kongyz

职务:普通成员
等级:1
金币:0.0
发贴:67
#12003/5/17 13:35:35
<%time_sql="select b.Yearvalue as Yearvalue b.TimeID as TimeID from Fore_value a, BasTime b where b.TimeID=a.TimeID and a.TargetID='"&report&"'and a.PrecID='"&Fore&"'"
set time_rs=conn.execute(time_sql)
do while not time_rs.eof%>
<%=time_rs("Yearvalue")%>年 <%=value_rs("Forevalue")%>

{ 在指尖上绽放的花朵 }

职务:普通成员
等级:5
金币:14.0
发贴:3209
#22003/5/17 15:09:59
<%
time_sql="select b.YearValue as YearValue b.TimeID as TimeID from Fore_Value a, BasTime b where b.TimeID=a.TimeID and a.TargetID='"&report&"'and a.PrecID='"&Fore&"'"
set time_rs=conn.execute(time_sql)
do while not time_rs.eof
%>
<%=time_rs("YearValue")%>年<%=value_rs("ForeValue")%>

kongyz

职务:普通成员
等级:1
金币:0.0
发贴:67
#32003/5/17 15:37:33
原来是个低级错误我差点把库表改了 呵呵
<%time_sql="select b.Yearvalue as Yearvalue ,b.TimeID as TimeID from Fore_value a, BasTime b where b.TimeID=a.TimeID and a.TargetID='"&report&"'and a.PrecID='"&Fore&"'"
set time_rs=conn.execute(time_sql)
do while not time_rs.eof%>



{ 在指尖上绽放的花朵 }

职务:普通成员
等级:5
金币:14.0
发贴:3209
#42003/5/17 23:59:05
引用:
确定SQL 语句没错?


不多说了……