declare
type t_sor is ref cursor;
v_sor t_sor;
str varchar2(50);
begin
str:='select '||xxx||' from yyy';
open v_sor for str;
loop
fetch v_sor into value;
when v_sor%notfound then exit;
dbms_output.put_line(value);
end loop;
end;
/
type t_sor is ref cursor;
v_sor t_sor;
str varchar2(50);
begin
str:='select '||xxx||' from yyy';
open v_sor for str;
loop
fetch v_sor into value;
when v_sor%notfound then exit;
dbms_output.put_line(value);
end loop;
end;
/
解决方案 »
- sql 求当月
- 不显示删除回复显示所有回复显示星级回复显示得分回复 求一条两个日期间计划用量的SQL,最大值,最小值以及对应日期,有点特别
- ■Oracle灾难性恢复问题(客户现场)■
- 同库跨多表模糊查询
- 关于两个数据库之间通过database link来访问的问题
- linux 安装oracle10g 写入目录/tmp 时出错
- 误删除数据方件后,如何启动数据库
- 字段长度问题?
- 请教高手:ORA-03113: end-of-file on communication channel错误发生的原因,如何解决?
- 谁有这本书?我买…………
- 关于内置函数ROWTOHEX和HEXTORAW不能用。
- 高分求教-触发器的问题(建立一个自动增加的字段)
http://expert.csdn.net/Expert/topic/2257/2257817.xml?temp=.5137751
拿分。