使用游标从表user_objects这样的数据字典中得到你的数据库对象的名字,然后拼接动态sql就行了.
cursor c is select ...;
...
open c;
fetch c into ...;
loop
...
sql='alter ... ';
execute immediate sql;
...
或者使用SQL批处理文件
http://www.oradb.net/sql/sql_bat.htm
cursor c is select ...;
...
open c;
fetch c into ...;
loop
...
sql='alter ... ';
execute immediate sql;
...
或者使用SQL批处理文件
http://www.oradb.net/sql/sql_bat.htm
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货