@KS42982:
Why use a temp table and drop it
Create a new table with the required definition, insert/select and the rename the tables:
create newtab (...);
ins newtab sel * from oldtab;
collect stats on newtab from oldtab; -- only for those columns where the datatype didn't change
drop table oldtab;
rename newtab to oldtab;
Dieter
↧