title: How to add composite primary key to table
body: <pre><code>create table d(id numeric(1), code varchar(2))
  </code></pre>
  
  <p>After I create the above table how can I add a composite primary key on both fields and also a foreign key?</p>