给所有表表添加字段的存储过程
来源:互联网 发布:淘宝零食模块怎么写 编辑:程序博客网 时间:2024/06/07 10:10
create or replace procedure pro_sw_sys_uqe_insert_pp is
begin
for my_refcur in (
select table_name
from all_tables
where owner='jzb_fxgl' and table_name like 'UQE%'
and table_name not in
(select TABLE_NAME
from user_tab_columns
where table_name in (select table_name
from all_tables
where owner = 'jzb_fxgl'
and table_name like 'UQE%')
and column_name = 'S_PP_TIME')
)
loop
execute immediate 'ALTER TABLE '||my_refcur.table_name||' ADD (S_PP_TIME VARCHAR2(200))';
end loop;
end
pro_sw_sys_uqe_insert_pp;
begin
for my_refcur in (
select table_name
from all_tables
where owner='jzb_fxgl' and table_name like 'UQE%'
and table_name not in
(select TABLE_NAME
from user_tab_columns
where table_name in (select table_name
from all_tables
where owner = 'jzb_fxgl'
and table_name like 'UQE%')
and column_name = 'S_PP_TIME')
)
loop
execute immediate 'ALTER TABLE '||my_refcur.table_name||' ADD (S_PP_TIME VARCHAR2(200))';
end loop;
end
pro_sw_sys_uqe_insert_pp;
0 0
- 给所有表表添加字段的存储过程
- 添加字段的存储过程
- 更新数据库所有表及所有字段的存储过程
- 查找用到某个字段的所有存储过程
- 为表添加和删除字段的存储过程
- 给所有存储过程加所有人权限的一个存储过程
- mysql 替换某个数据库里所有表所有字段的文字,存储过程
- mysql动态添加字段存储过程
- 添加表、字段、存储过程、定时任务
- 添加的存储过程
- SQL Server 文档整理 - 1 列出目的表所有字段的存储过程
- [SQL Server]如何快速查找使用了某个字段的所有存储过程?
- sqlserver如何快速查找使用了某个字段的所有存储过程
- 在mysql上使用存储过程给相应的表加入字段
- 为表名不同但属性相同的多个表添加字段的mysql存储过程示例
- 给IReport添加字段的简便方法
- mysql给表添加字段的命令
- FMDB给表添加新的字段
- js图片上传预览
- 一张图足已明白JAVA设计模式
- 【转】通过《淘宝这十年》总结的脑图
- 【转】细数JDK里的设计模式
- 根据签名获取hashCode的值
- 给所有表表添加字段的存储过程
- 关于<mvc:default-servlet-handler/>报错问题的解决
- easyui 简单数据库查询 和 添加
- Hbase shell常用命令
- SIGGRAPH 2016 papers
- Hbase安装常见问题总结
- SeqList 顺序表的实现
- linux加载大硬盘
- DL学习笔记【13】caffe参数调节-命令行