db2中declare continue handler for not found 是什么意思

来源:百度知道 编辑:UC知道 时间:2024/05/17 12:20:48
在db2的存储过程中,声明游标后,需要declare continue handler for not found set ant_end =1;是什么意思,到底是判断谁的,判断游标的,还是判断存储过程的。谢谢!

它的含义是:若没有数据返回,程序继续,并将变量IS_FOUND设为0 ,这种情况是出现在select XX into XXX from tablename的时候发生的。

是判断游标的