Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 24 Feb 2004 @ 14:46:49 GMT

  <Prev Next>  
Next> Last>>  

Subj:   constraints
From:   Ferry, Craig

I built a table using the following sql. After I was done, used an alter table to create a foreign key constraint. After doing this I noticed that teradata created another table called caf_test_0. What is this table used for? Does this hold the constraint info, or is this a temp table of some sort which can be dropped?



create table dssbatch.caf_test (
        assignment_id VARCHAR(14) not null,
        market_class VARCHAR(30) not null,
        sales_goal INTEGER default 0 not null, constraint
acct_rep_class_assignment_PK primary key (market_class, assignment_id) )

alter table dssbatch.caf_test
        add constraint acctrep_class_assignment_FK1 foreign key (
         references dssbatch.caf_test2 (

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