declare
l_sql varchar2(123); -- variable that contains a query
l_c sys_refcursor; -- cursor variable(weak cursor).
l_res your_table%rowtype; -- variable containing fetching data
begin
l_sql := 'select * from your_table'; -- Open the cursor and fetching data explicitly
-- in the LOOP. open l_c for l_sql; loop
fetch l_c into l_res;
exit when l_c%notfound; -- Exit the loop if there is nothing to fetch.
-- process fetched data end loop; close l_c; -- close the cursor
end;
相关文章
- 10-22如果使用游标cursor重新转移数据到另外一张表
- 10-22如果使用游标cursor重新转移数据到另外一张表
- 10-22robotframework的FOR LOOP有2种类格式
- 10-22cursor中的url整理
- 10-22刷题记录:[DDCTF 2019]homebrew event loop
- 10-22[算法基础]斐波那契(recursion+loop)两种方式执行时间对比
- 10-22汇编语言-[BX]和loop指令
- 10-22帝国CMS系统标签e:loop调用的附加SQL条件和排序参数
- 10-22王爽汇编第五章,[bx]和loop指令
- 10-22python – 在cursor.fetchall()期间的psql强制解析错误