![](//teradataforum.com/imgs/ptdfw1.gif) |
![](//teradataforum.com/imgs/ptdfw2.gif) |
Archives of the TeradataForum
Message Posted: Tue, 24 Feb 2004 @ 14:46:49 GMT
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?
Thanks
Craig
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 (
assignment_id)
references dssbatch.caf_test2 (
branch_id);
| |