28,389
社区成员
发帖
与我相关
我的任务
分享
<%
'1)
'....
if rsd.state<>0 then rsd.close
rsd.open "select * from shm where bh="&wdns_ed,conn,1,1
if not rsd.eof then
wdns_pm=rsd("mc")
end if
'==============================
'2)
wdns_pm=conn.execute("select mc from shm where bh="&wdns_ed)(0)
%>
上述SQL前提是bh字段是数字,如果是文本,改为"select * from shm where bh='"&wdns_ed&"'"