匿名过程能不能有输入值;像下面的语句,能不能把rcClass输出来
declare
type rc_class is ref cursor;
rcClass rc_class;
begin
if 1<>1 then
Open rcClass for SELECT * FROM SYS_NextKey where TableName = '1';
else
Open rcClass for SELECT * FROM SYS_NextKey;
end if;
end;
declare
type rc_class is ref cursor;
rcClass rc_class;
begin
if 1<>1 then
Open rcClass for SELECT * FROM SYS_NextKey where TableName = '1';
else
Open rcClass for SELECT * FROM SYS_NextKey;
end if;
end;
解决方案 »
- 【面试题】删除所有重复的数据
- 请问这样一个PROCEDURE 怎么创建才算好?
- 请各位高手 优化我这条SQL语句
- oracle存储图片出错
- 求救存储过程的小例子
- 看一條sql
- 建一nvarchar2字段,设置大小为2000,但在添加记录是却添加了6000个汉字也不会提示溢出,高手指教指教!
- 在Oracle建立user 和 相应的tablespace??
- liunx服务器下的oracle字符问题
- 大三同学关于数据库的查询遇到了诡异的问题
- 请帮我看看这个遍历树的深度的存储过程哪里错了
- ORA-01461: can bind a LONG value only for insert into a LONG column
declare
type rc_class is ref cursor;
rcClass rc_class;
begin
if 1<>1 then
Open rcClass for SELECT * FROM SYS_NextKey where TableName = '1';
else
Open rcClass for SELECT * FROM SYS_NextKey;
end if;
end;
IF 1 <> 1 THEN
OPEN :rcClass FOR
SELECT * FROM SYS_NextKey WHERE TableName = '1';
ELSE
OPEN :rcClass FOR
SELECT * FROM SYS_NextKey;
END IF;
END;
/print rcClass;