By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,586 Members | 2,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,586 IT Pros & Developers. It's quick & easy.

Primary Key

P: n/a
How to set a primary key for a table using alter command and how to change the primary key for already existing table?
Jun 28 '07 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
How to set a primary key for a table using alter command and how to change the primary key for already existing table?
Expand|Select|Wrap|Line Numbers
  1. alter table tableName add constraint pk_tableName PRIMARY KEY (columnName)
Jun 28 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.