Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sun, 16 Dec 2007 @ 09:12:48 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: Representation of Partitioned Priomary Indexes in DBC
 
From:   Vinay Bagare

Try this

     SELECT
     'PARTITION BY '||SUBSTRING(SUBSTRING(ConstraintText FROM 9) FROM 1 FOR
     CHARACTER_LENGTH(SUBSTRING(ConstraintText FROM 9)) - 22)
     FROM DBC.IndexConstraints
     WHERE DatabaseName = ''
     AND TableName = '
     AND ConstraintType = 'Q';

Thanks,

Vinay Bagare



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023