What is the SQL sytax to create a primary key?

  • Thread starter Thread starter san_quentin76
  • Start date Start date
S

san_quentin76

The table has already been created by previous make table queries. Is the
CREATE command used to create the primary key(s)? If so can I have a sample
sql version of the syntax used.
 
ALTER TABLE Table_Name
ALTER COLUMN FieldName INTEGER PRIMARY KEY ;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top