Copying statistics of one table to another [message #200261] |
Mon, 30 October 2006 02:34 |
a_developer
Messages: 194 Registered: January 2006
|
Senior Member |
|
|
I have 2 tables with the same structures, same number of rows, same data - except for one column which is neither indexed nor used in any referential integrity. Example, TableA and TableB:
TableA has columns col1 and col2. TableB is created as:
create TableB as
select col1, (col2 + 1) col2 from Table A;
TableB has same indexes as TableA except for the name. TableA has index1_A, index2_A.. and TableB has index1_B, index2_B..
In short, the tables are exactly in structure and data. Is there a way I can just copy the statistics of TableA to TableB?? It will take me 5 hours to analyze TableB if I can't.
Thanks.
|
|
|
|
|