View previous topic :: View next topic |
Author |
Message |
Nila Beginner
Joined: 26 Dec 2002 Posts: 20 Topics: 8 Location: Chennai, India
|
Posted: Tue Apr 08, 2003 5:59 am Post subject: Finding Type of table space related to a table in DB2 |
|
|
Hi
How to find the type of table space related to a table?
And what is the maximum size of a table? _________________ Cheers Nila.. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Apr 08, 2003 6:36 am Post subject: |
|
|
Nila,
Code: |
SELECT TYPE
FROM SYSIBM.SYSTABLESPACE
WHERE NAME = 'YOUR TBSPACE NAME'
;
|
If you don't know the tablespace name but have only the table name then use the following
query
Code: |
SELECT TYPE
FROM SYSIBM.SYSTABLESPACE
WHERE NAME = (SELECT TSNAME
FROM SYSIBM.SYSTABLES
WHERE NAME = 'YOUR TABLE NAME')
;
|
Check this link for explanation of the type of tablespace.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNSQH11/D.75?DT=20010718164132
The Largest table or table space is 16 terabytes with a max of 750 columns.
Hope this helps...
cheers
kolusu |
|
Back to top |
|
 |
Nila Beginner
Joined: 26 Dec 2002 Posts: 20 Topics: 8 Location: Chennai, India
|
Posted: Tue Apr 08, 2003 7:47 am Post subject: |
|
|
Hi kolusu
Thank you so much _________________ Cheers Nila.. |
|
Back to top |
|
 |
|
|