467,202 Members | 1,114 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,202 developers. It's quick & easy.

Primary Key

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
  • viewed: 1042
Share:
1 Reply
8TB
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.

Similar topics

6 posts views Thread by John Simmons | last post: by
5 posts views Thread by Ghulam Farid | last post: by
9 posts views Thread by 101 | last post: by
5 posts views Thread by shenanwei@gmail.com | last post: by
18 posts views Thread by Thomas A. Anderson | last post: by
4 posts views Thread by Peter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.