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
来源:慕课网
相关文章
相关标签/搜索