主题:一个条件语句,怎么写好呢,高手请教啊,谢谢
现在是查询一个字段代码是这样的:
<%
Set rs=Server.CreateObject("adodb.recordSet")
rs.Open ("select yingxiao_detail from [Yixiang_worldec_Temp] where yx_selected=1"),conn,1,1
If rs.Eof Then
Call ErrView("·该模版不存在,请确认模版的位置是否正确!",0)
Response.End()
End If
If Not rs.Eof Then
[color=FF0000]pencat=rs("yingxiao_detail")[/color]
rs.Close
End If
%>
但是,我想查询多个字段fagui_detail,caijing_detail,这里边对应的
rs.Open ("select yingxiao_detail,fagui_detail,caijing_detail from [Yixiang_worldec_Temp] where yx_selected=1"),conn,1,1
下边的应该怎么去让他选择去查询呢
pencat=rs("yingxiao_detail"),pencat=rs("fagui_detail"),pencat=rs("caijing_detail"),
<%
Set rs=Server.CreateObject("adodb.recordSet")
rs.Open ("select yingxiao_detail from [Yixiang_worldec_Temp] where yx_selected=1"),conn,1,1
If rs.Eof Then
Call ErrView("·该模版不存在,请确认模版的位置是否正确!",0)
Response.End()
End If
If Not rs.Eof Then
[color=FF0000]pencat=rs("yingxiao_detail")[/color]
rs.Close
End If
%>
但是,我想查询多个字段fagui_detail,caijing_detail,这里边对应的
rs.Open ("select yingxiao_detail,fagui_detail,caijing_detail from [Yixiang_worldec_Temp] where yx_selected=1"),conn,1,1
下边的应该怎么去让他选择去查询呢
pencat=rs("yingxiao_detail"),pencat=rs("fagui_detail"),pencat=rs("caijing_detail"),