asp条件语句中如何设置不读取第N列数据为0的行

来源:百度知道 编辑:UC知道 时间:2024/06/10 03:08:13

<%
N=5
sql="select * from tableA"

rs.open sql,conn,1,1

do while (not rs.eof)

if rs(N) <> 0 then

输出。。。

end if

rs.movenext

loop
%>

do ...
if rs("title") <> 0 then

要处理的

end if

loop

"select*from 表名 where N列<>0"
就OK了