Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 14 Sep 2015 @ 20:02:41 GMT


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


Subj:   Getting column-names from dbc.columns in an order
 
From:   Anomy Anom

<-- Anonymously Posted: Monday, September 14, 2015 14:57 -->

Hi,

Is there any way by which I could query dbc.columns (or any other dbc table) to get the list of column names of a particular table in the same order as their actual ordinal positions in the table DDL ?

Currently when I query dbc.columns to get the list of columns (for any table) it returns the columns in a random order. However, I want them to be returned in the exact order as they are positioned/appears in the table structure.


Thanks



     
  <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