ORACLE表名与列名小写转成大写

批量将表名变为大写
begin
for c in (select table_name tn from user_tables where table_name <> upper(table_name)) loop
begin
execute immediate 'alter table "'||c.tn||'" rename to '||c.tn;
exception
when others then
dbms_output.put_line(c.tn||'已存在');
end;
end loop;
end;
作者:yeiqing000
链接:http://www.imooc.com/article/14076
来源:慕课网

 

posted @ 2018-10-15 11:05  曹英杰  阅读(722)  评论(0编辑  收藏  举报