DB2
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized ForumsDatabasesDB2

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 Tutorialized Forums Sponsor:
  #1  
Old May 6th, 2008, 04:57 AM
djauschio djauschio is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 1 djauschio User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 3 sec
Reputation Power: 0
DB2 List / Range Partitioning

We are planning to partition a table on List basis like

Below is syntax of "List Partitioning" in Oracle:

create table myTable(T_ID int Primary key, T_Status char, T_Date date, ...)
partition by List(T_Status)
(
partition p1 values('A'),
partition p2 values('B'),
partition p3 values('C'),
partition p_else (Default)
);


We tried to get same in DB2 as
partition by Range(T_Status)
(
partition starting ('A') ending ('A'),
partition starting ('B') ending ('B'),
partition starting ('C') ending ('C'),
partition p_else (Default) <== Here we get error, we need all status values in this partition other than 'A','B','C'
);


Can we partition the table on both T_Status (A character field) and T_Date(A date field) like
Partition by Range(T_Status, T_Date)
(
....
)


regards
Kamran

Reply With Quote
Reply

Viewing: Tutorialized ForumsDatabasesDB2 > DB2 List / Range Partitioning


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 1 hosted by Hostway