Home » RDBMS Server » Server Administration » Partitioned table syntax question....gurus please look
Partitioned table syntax question....gurus please look [message #58160] Tue, 05 August 2003 08:11
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
I am just curious to know what difference it will make if I created partitioned tables in the following fashhion.
PLAN A
======
create table tab_zz 
(
  col_a number(2), 
  col_b char(2)
)
tablespace users 
partition by range (col_a)
(<B>
  partition part1 values less than (11), 
  partition part2 values less than (21)</B>
);

PLAN B
======
create table tab_zz
(
  col_a number(2), 
  col_b char(2)
)
tablespace users 
partition by range (col_a)
( <b>
  partition part1 values less than ('11'), 
  partition part2 values less than ('21')</B>
);

The ONLY difference in the tables are the way the partition is set. Look at 'partition part1 values less than..' syntax.

Now the questions are:
1. Which is the correct syntax ? (my answer Plan A)
2. Can Plan B syntax be less efficient in the sense that partition range col_a is set as a striing ? ( this is where I have the doubt)
3. Or will there be no difference as Oracle takes care of it internally ?

Any feedbacks welcome. Mahesh ??
Previous Topic: Urgent: Dispatcher ora-00106
Next Topic: what is an Index file ?
Goto Forum:
  


Current Time: Fri Sep 20 09:48:29 CDT 2024