郁闷中,高手来解释一下这个错误
SQLSTATE = S1000
[Microsoft][ODBC SQL Server Driver]connection is busy with results for another hstmt
相关源码:
declare area cursor for select distinct name from name order by name;
open area;
fetch area into :toto;
if sqlca.sqlcode<0 then
messagebox("database error",sqlca.sqlerrtext,exclamation!)
return
end if
do while sqlca.sqlcode =0
insert into inputtemp (zhibiao1,zhibiao2,zhibiao3,zhibiao4,zhibiao5,zhibiao6,zhibiao7,zhibiao8,zhibiao9,zhibiao10,zhibiao11,zhibiao12,zhibiao13,zhibiao14,zhibiao15,tempid,name) values('0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',0,:toto);
fetch area into :toto;
loop
close area;