begin
for c in (select COLUMN_NAME cn from all_tab_columns where table_name = '表名') loop
begin
execute immediate 'alter table 表名 rename column "'||c.cn||'" to '||c.cn;
exception
when others then
dbms_output.put_line('表名' || '.' || c.cn || 'exist');
end;
end loop;
end;