If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > need help for range partition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-09, 03:52
ravisrip ravisrip is offline
Registered User
 
Join Date: Nov 2009
Posts: 2
need help for range partition

can any one help how to write a generalized query for a table partition in db2 using range scheme.
After going through few docs i got a example using hash scheme,i.e:
db2 "SELECT COLNAME, PARTKEYSEQ FROM SYSCAT.COLUMNS WHERE TABNAME = '<TableName>' AND PARTKEYSEQ != 0 \
ORDER BY PARTKEYSEQ"
I also need the same as above for a range partition

thanks in advance
Reply With Quote
  #2 (permalink)  
Old 11-23-09, 07:11
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Check SYSCAT.COLUSE
Reply With Quote
  #3 (permalink)  
Old 11-23-09, 07:16
ravisrip ravisrip is offline
Registered User
 
Join Date: Nov 2009
Posts: 2
could u plz send the exact query as above ....so that it can be used in an application
Reply With Quote
  #4 (permalink)  
Old 11-23-09, 11:11
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Can you send me your pay cheque ?

Quote:
Originally Posted by ravisrip View Post
could u plz send the exact query as above ....so that it can be used in an application
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 11-23-09, 11:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by sathyaram_s View Post
Can you send me your pay cheque ?
Hey, I was here first!

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On