Home » RDBMS Server » Server Administration » Dynamic partitioning
Dynamic partitioning [message #51743] Tue, 11 June 2002 12:26 Go to next message
Ravikiran
Messages: 9
Registered: June 2002
Junior Member
Hi All,

Could some one help me out,in partitioning a table dynamically on date column.

Regards,
Ravikiran
Re: Dynamic partitioning [message #51745 is a reply to message #51743] Tue, 11 June 2002 13:04 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
declare 
this_date varchar2(15); 
begin 
select (concat(concat('''',to_char(sysdate,'DD-MON-YYYY')),'''')) into this_date 
from dual; 
execute immediate 'create table test(col1 date) 
partition by range(col1) 
(partition p1 values less than ('||this_date||'), 
partition p2 values less than (maxvalue))'; 
end; 
/ 

Previous Topic: import question
Next Topic: Log file Information
Goto Forum:
  


Current Time: Tue Sep 17 02:07:08 CDT 2024