Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Modify the partition - response (1) by Dixxie

$
0
0

Hi Kbos,
Make a copy of your table and then try this (prior replace db_name and table_name ) :
DROP STAT    db_name.table_name  COLUMN(PARTITION);
ALTER TABLE  db_name.table_name  MODIFY PRIMARY INDEX ADD RANGE BETWEEN DATE '2005-01-01' AND DATE '2008-03-31' EACH INTERVAL '1' DAY;
ALTER TABLE  db_name.table_name  MODIFY PRIMARY INDEX ADD RANGE BETWEEN DATE '2013-01-01' AND DATE '2013-12-31' EACH INTERVAL '1' DAY;         
COLLECT STATISTICS ON db_name.table_name   COLUMN (PARTITION) ;
Regards.
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>