[轉]http://oracledev.5d6d.com/archiver/tid-599.html
for i in 1 ..40 loop
copy(i,'block.item'||i);
end loop;
--将循环变量循环赋值给block.item1,block.item2....
另动态取得系统变量的值,对象的值,如
直接变量 :system.cursor_item 间接变量:name_in('system.cursor_item');
:global.aaa name_in('global.aaa');
:block.item name_in('block.item')
当前项的值 name_in(name_in('system.cursor_item'););
如将block1.item1,block1.item2...分别赋值给block2.item1,block2.item2...
for i in 1..40 loop
copy(name_in('block1.item'||i),'block2.item'||i);
end loop;
沒有留言:
張貼留言