Oracle跨ower操作
来源:互联网 发布:淘宝推广一年多少钱 编辑:程序博客网 时间:2024/06/05 06:32
create or replace procedure SP_ChangeOneTabToAnother is
strSql varchar2(200);
begin
dbms_output.put_line('begin');
for c_colName in ( select t.column_name
from ALL_TAB_COLUMNS t
where t.table_name='Table1'
and t.data_type like 'NUMBER%'
and t.owner = 'Owner1')
loop
dbms_output.put_line(c_colName.Column_Name);
strSql:='update owner2.table2 set ' || c_colName.Column_Name||' =0 where '|| c_colName.Column_Name|| ' is null';
dbms_output.put_line(strSql);
execute immediate strSql;
commit;
end loop;
end SP_FACARD_NUMMOD;
/
exec SP_FACARD_NUMMOD;
strSql varchar2(200);
begin
dbms_output.put_line('begin');
for c_colName in ( select t.column_name
from ALL_TAB_COLUMNS t
where t.table_name='Table1'
and t.data_type like 'NUMBER%'
and t.owner = 'Owner1')
loop
dbms_output.put_line(c_colName.Column_Name);
strSql:='update owner2.table2 set ' || c_colName.Column_Name||' =0 where '|| c_colName.Column_Name|| ' is null';
dbms_output.put_line(strSql);
execute immediate strSql;
commit;
end loop;
end SP_FACARD_NUMMOD;
/
exec SP_FACARD_NUMMOD;
- Oracle跨ower操作
- 关于Oracle数据库如何查询非当前用户名命名空间下的表不需要写ower直接from 表名
- Oracle跨数据库操作
- oracle跨数据库简单操作
- Oracle跨库链接操作
- Revit开发将WPF的Ower设置为Revit窗体
- oracle 操作
- oracle操作
- ORACLE操作
- ORACLE 操作
- 操作oracle
- oracle操作
- Oracle操作
- oracle操作
- Oracle 操作
- oracle操作
- oracle操作
- Oracle操作
- Jsp页面的乱码问题
- 现在为了更好的读取rss收集了一些blog站点,希望有知道除了以下的,能再多提供
- SQL Server 2000 Driver for JDBC安装与配置
- delphi组件
- Ajax初体验(一)
- Oracle跨ower操作
- C#中的值类型及装箱
- sql查询
- SCA的起源
- 快被建行的网上银行气死了
- ASP短信发送程序
- class与struct的区别与联系
- Apusic JSF — 体验Ajax
- 隐士的C#编码规范草稿