Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Mon, 27 Sep 2004 @ 15:16:41 GMT





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




Subj:   Primary Key
 
From:   Narayan Murthy



Why does the "Primary key" keyword vanish from the table definition, when a SHOW TABLE is run? Is this okay?

     BTEQ -- Enter your DBC/SQL request or BTEQ command:
     ct t1(a int not null primary key, b int);

     ct t1(a int not null primary key, b int);

      *** Table has been created.
      *** Total elapsed time was 1 second.


      BTEQ -- Enter your DBC/SQL request or BTEQ command:
     show table t1;

     show table t1;

      *** Text of DDL statement returned.
      *** Total elapsed time was 1 second.

     -----------------------------------------------------
     CREATE SET TABLE CHK.t1 ,NO FALLBACK ,
          NO BEFORE JOURNAL,
          NO AFTER JOURNAL,
          CHECKSUM = DEFAULT
          (
           a INTEGER NOT NULL,
           b INTEGER)
     UNIQUE PRIMARY INDEX ( a );

I know that what gets displayed ultimately translates to "primary key" definition - but should this happen?


Narayan





     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008