Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 07 Dec 2007 @ 19:20:23 GMT


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


Subj:   Re: Create table with comments
 
From:   Anomy Anom

<-- Anonymously Posted: Fri, 7 Dec 2007 13:12 -->

And don't forget comments can be defined for the table as well as individual columns:

     SELECT 'COMMENT ON '
     ||trim(DatabaseName)||'.'||trim(TableName)
     ||' IS '''||CommentString||''';'
     FROM DBC.Tables
     WHERE CommentString IS NOT NULL
     AND DatabaseName='MyDB'
     AND TableName='MyTable';


     
  <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