Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 07 Dec 2007 @ 19:10:37 GMT


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


Subj:   Re: Create table with comments
 
From:   Kamin Shah

You will have to go against the DBC table to generate comments for you:

     select
     'COMMENT ON ' || TRIM(DATABASENAME) || '.' || TRIM(TABLENAME) || '.' ||
     TRIM(COLUMNNAME) || ' IS ' || '''' || COMMENTSTRING || '''' || ';'
     /*select * */
     from dbc.columns


     
  <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