A(j)为数组 ?Oracle doesn't have 数组 concept
解决方案 »
- oracle触发器动态sql问题
- occi.h文件是什么
- oracle中关于时间的处理问题
- 在线等待高手相助: 启动时提示出错:ORA-00064: object is too large to allocate on this O/S(1,4800000)
- WINDOWS下打了震荡波补丁后,ORACLE的服务不能自动启动,只能在DOS下手动启动
- 将Oracle9i数据库的数据库文件导入到Oracle10g时出错
- Oracle错误提示:VTK-1000:无法连接到Management Server yl。请验证您已输入Oracle Management Server 的正确主机名和状态。在线等待!
- ORACLE数据库,关于创建触发器时遇见的问题
- 急!!oracle里如何获得一个时间类型,请指教(在线等待)
- 哪里有下载oracle8i for win2000的?
- oracle 的备份语句怎么写?
- 超难问题:ORACLE性能?无经验者勿入。
commit;
select field2 from tab where field3=A(j);
可以用
for j in 1..n loop
--stmt
end loop;
CREATE TABLE EMP (
EMPNAME VARCHAR2 (30) NOT NULL,
DEPTID NUMBER,
) ;
declare
type num_type is varray(10) of number;
nums num_type;
i pls_integer;
begin
nums := num_type();
nums.extend();
nums(1) := 1;
nums.extend();
nums(2) := 2;
nums.extend();
nums(2) := 2;
forall i in nums.first..nums.last
insert into emp (empname, deptid) select empname, deptid from emp where deptid = nums(i);
end;