How to add composite primary key to table

Viewed 167467
create table d(id numeric(1), code varchar(2))

After I create the above table how can I add a composite primary key on both fields and also a foreign key?

5 Answers
Related