asp之怎么才能不输出这个表名

来源:百度知道 编辑:UC知道 时间:2024/06/15 19:40:13
if(rs("TABLE_TYPE")<>"VIEW" and rs("TABLE_NAME")<>"dtproperties" or r("TABLE_NAME"<>"manager"))then
%>
<option value=<%=rs("TABLE_NAME")%>><%=rs("TABLE_NAME")%></option>
<%
end if

上面的程序运行时出现这样的错误:在对应所需名称或序数的集合中,未找到项目。

但我把“or rs("TABLE_NAME"<>"manager")”删掉时,会输出两个表名。

请问这是怎么回事啊?我不想让表“manager”出现。

if(rs("TABLE_TYPE")<>"VIEW" and rs("TABLE_NAME")<>"dtproperties" or r("TABLE_NAME"<>"manager"))then
%>
这个好像错了吧
if((rs("TABLE_TYPE")<>"VIEW") and (rs("TABLE_NAME")<>"dtproperties" or rs("TABLE_NAME")<>"manager"))then
%>

if (rs("TABLE_TYPE")<>"VIEW" and (rs("TABLE_NAME")<>"dtproperties" or rs("TABLE_NAME"<>"manager"))) then
%>
<option value="==选择名称=="><%=rs("TABLE_NAME")%></option>
<%
end if

问题就出在你所表述的
1、 if(rs("TABLE_TYPE")<>"VIEW" and rs("TABLE_NAME")<>"dtproperties" or r("TABLE_NAME"<>"manager"))then ,"VIEW" 和 "dtproperties"如果用""引起来就