用DBMS_SQL动态执行SQL语句,参考:
http://expert.csdn.net/Expert/TopicView1.asp?id=1442816
http://expert.csdn.net/Expert/TopicView1.asp?id=1442816
解决方案 »
- GET_INDEX是干什么的啊?,,,在线等!!着急
- vmware 下面安装 LIUNX 报 PXE-MOF:EXITING INTEL PXE ROM.
- 数据库设计
- 求大侠 帮忙 在线等待!!!
- 安装文件和数据文件都在,重装系统后如何恢复oracle11gr2??
- 采用ORACLE数据库系统SQL语言完成建表工作的题目,求高人解答
- ~~~基础问题,帮忙~~~感激!!!
- 使用了dbms_output.put_line,但是为何老是看不到输出结果?急人!!!!
- 两位年转换成四位时的问题
- 请教 as 和 is 的区别?
- 菜鸟求救!为什么从Oracle中提取的字段都是十六进制的?
- form 怎么无法保存啊?!
cursor c is select ....;
...
begin
open c;
fetch c into ...;
while c%found loop
...
fetch c into ...;
end loop;
...
as
type t_sor is ref cursor;
v_sor t_sor;
str varchar2(50);
begin
str:='select * from cat where table_name='||upper(p_table);
open v_sor for str;
end;
/