28,409
社区成员




conn.execute("update Info set typeid_2="&shop_class3&", typeid="&shop_class2&",sortid="&shop_class1&" where typeid_2=0 and typeid=0 and sortid="&id&" ")
set rs= server.createobject ("adodb.recordset")
sql ="select * from Info where typeid_2="&id&" and typeid="&typeid&" and sortid="&sortid&" "
rs.open sql,conn,1,3 '加入这行
do while not rs.eof
rs("sortid")=shop_class1
rs("typeid")=shop_class2
rs("typeid_2")=shop_class3
rs.update
rs.movenext
loop
rs.close
set rs= server.createobject ("adodb.recordset")
sql ="select * from tab where aa=1 and bb=2 and cc=3"
rs.open sql,conn,1,3 加入这行
if rs.eof or rs.bof then
response.Write(" <script language='javascript'>alert(""出错!""); </script>")
else
rs("aa")=10
rs("bb")=20
rs("cc")=30
rs.update
rs.close
conn.execute("update tab set aa=10, bb=20,cc=30 where aa=1 and bb=2 and cc=3")