Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3458

Re: Sybase Tables

$
0
0

Hi,

 

You can also run a query below to see the information of a partitioned table.

 

/**************************************************************************************************/

selectUpper(P.partition_name) partition_name, P.partition_values, DBS.dbspace_name
fromSYSPARTITIONS P, SYSTABLE T, SYSDBSPACE DBS
whereP.table_id = T.table_id
andP.partition_dbspace_id = DBS.dbspace_id

and t.table_name='part_order'

-- suser_name(t.creator) = 'table_owner'

order by p.partition_id

/**************************************************************************************************/


You will see this kind of results.


partition_name,partition_values,     dbspace_name

'P1',                '1992-12-31',          'DSP1'

'P2',                '1993-12-31',          'DSP1'

'P3',                '1994-12-31',          'DSP1'

'P4',                '1995-12-31',          'DSP1'

'P5',                '1996-12-31',          'DSP1'

'P6',                '1997-12-31',          'DSP1'

'P7',                '1998-12-31',          'DSP1'

'P82',                MAX,                   'DSP1'

'P81',               '1999-12-31',          'DSP1'

 

Best Regards

Jerry


Viewing all articles
Browse latest Browse all 3458

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>