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
来源:慕课网

猜你喜欢

转载自www.cnblogs.com/caoyingjielxq/p/9789875.html