Other workarounds
1. -- Use a view with correct column names...
rename t1 to t1_base;
create view t1
2. -- Recreate the table with correct column names...
create table t2
drop table t1;
rename t2 to t1;
3. -- Add a column with a new name and drop an old column...
alter table t1 add ( newcolame datatype );
update t1 set newcolname=oldcolname;
alter table t1 drop column oldcolname;
No comments:
Post a Comment