求助高手帮帮忙!!谢谢 数据库问题
错误类型:
ADODB.Recordset (0x800A0CB3)
/test/tt.asp, 第 9 行 请教高手增加表的记录哪里有问题?(我的意图是把表stock中type字段不和表storage同名记录增加到storage中)
<!--#include file="connect.asp"-->
<%
sq="select distinct type as mm,amount as nn from storage,stock where stock.type not in (select model from storage)"
set rs=conn.execute(sq)
rs.movefirst
while not rs.eof
a=rs("mm")
b=rs("nn")
rs.addnew
rs("model")=a
rs("num")=b
rs.update
rs.movenext
wend
rs.close
conn.close
set rs=nothing
set conn=nothing %>