两个或多个游标怎么做?
declare cur1 cursor for (select id from t group by id);
declare continue handler for sqlstate '02000 ' set done1=1;
declare cur2 cursor for (select tm from t where id=t_id);
declare continue handler for sqlstate '02000 ' set done2=1;
这样错了.
如果当使用多个游标时怎么办?.
------解决方案--------------------你要怎么办?
和循环的嵌套是一个原理。