try this:create or replace procedure noahark.Pro_basic_inter_entity_apps as v_entitytypename tbl_basic_inter_entity_apps.centityname%type;
v_bisend tbl_basic_inter_entity_apps.bisend%type;
cursor c1 is
select casstypecode,ire from noahark.tbl_basic_inter_asstype_apps;
begin
open c1;
--for i in 1..4 loop
fetch c1 into v_entitytypename,v_bisend;
insert into tbl_basic_inter_entity_apps(centitycode,ilevel) values(v_entitytypename,v_bisend);
COMMIT;
--end loop;
end;
v_bisend tbl_basic_inter_entity_apps.bisend%type;
cursor c1 is
select casstypecode,ire from noahark.tbl_basic_inter_asstype_apps;
begin
open c1;
--for i in 1..4 loop
fetch c1 into v_entitytypename,v_bisend;
insert into tbl_basic_inter_entity_apps(centitycode,ilevel) values(v_entitytypename,v_bisend);
COMMIT;
--end loop;
end;
解决方案 »
- 再求高手指点下这个SQL怎么写请给具体SQL啊谢谢
- ORACLE :为一个数据表循环更新数据,求一段代码!!!!
- 视图转换成存储过程求救
- 取随机数求并集问题
- 请教一个关联查询的问题
- 复杂索引中出现多个字段,对多个字段的不同使用师父出现不同的效率,请问怎么确定这个相应的效率问题?
- 大难题:在Win2000或者WinXP上安装 Oracle7.3.3 ???
- 在ORACLE中的隐式游标和显示游标的区别
- 求一SQL,查询每笔通话数据是套餐内还是套餐外,非常感谢。
- 求助:oracle tnsping延时时快时慢
- Oracle同步问题,急!!!
- 在windows2003 EM要怎么打开啊?oracle10g在线等
declare cursor
begin
open
close
end
end