Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 28th, 2005, 07:47 AM
paulh1983 paulh1983 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2004
Posts: 1,255 paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 15 h 14 m
Reputation Power: 17
partitioning context does this look right?

Code:
create Table students (
student_no	NUMBER(8) CONSTRAINT pk_student_no Primary Key,
firstname     	Varchar2(15),
lastname	Varchar(20),
streetno	Varchar2(30),
city		varchar2(20),
postcode        varchar2(9),
phone		varchar2(15),
userid          char(5),
enrolment_date	date,
enrolment_year  number(4))
partition by range (enrolment_year)
(partition S1 values less than (2001) tablespace comp3_5 Storage (initial 1K Next 1K)
partition S2 values less than (2002) tablespace comp3_5 Storage (initial 1K Next 1K pctincrease0)
partition S3 values less than (2003) tablespace comp3_5 Storage (initial 1K Next 1K pctincrease0)
partition S4 values less than (2004) tablespace comp3_5 Storage (initial 2K Next 1K pctincrease0)
partition S5 Maxvalue tablespace comp3_5 Storage (initial 3K Next 1K pctincrease0));


or should each partition have its own opening/closing brackets?

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > partitioning context does this look right?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT