Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 06 Mar 2003 @ 17:48:16 GMT

  <Prev Next>  
Next> Last>>  

Subj:   The Column order in Primary index
From:   Ruth Fenwick

A developer came to me with the following

they ran:

create table taba (col1,col2,col3,col4,col5....)
primary index (col5,col3,col1)

But a show table shows

primary index (col1,col3,col5)

I know that it doesn't matter what order the columns are in on the index since they're all in the row hash and teradata probably likes them in the order they're defined in the table (make sense to me)

I can't find it documented anywhere, does anyone know where it's documented that teradata will reorder the index to be in the column definition order. Failing that, does someone have a good explanation I can pass on.



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