Interview Questions   Tutorials   Discussions   Programs   

Teradata - In a table can we use primary key in one column and in another column both unique and not Null constrains. If yes how? Please give me a example?




642
views
asked mar September 20, 2014 06:38 AM  

In a table can we use primary key in one column and in another column both unique and not Null constrains. If yes how? Please give me a example?


           

1 Answers



 
answered By vishnoiprem   0  
CREATE TABLE dbname.pk_test
, NO BEFORE JOURNAL, NO AFTER JOURNAL, NO FALLBACK, CHECKSUM = DEFAULT
(col1 INTEGER NOT NULL PRIMARY KEY
,col2 INTEGER NOT NULL PRIMARY KEY
,col3 INTEGER NOT NULL
)
PRIMARY INDEX (col3);
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert