使用WITH return子句声明游标。
对于每个将要返回的结果集,使用WITH return子句声明游标。
Declare cursors for each of the result sets to be returned that specify the WITH return clause.
与消耗时间不同,对于声明游标的语句,CPU时间是打开游标、所有读取操作和关闭游标的时间总和。
Unlike elapsed time, in case of a declare cursor statement the CPU time is the sum of open, all fetched and close.
应用推荐