C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
SQL Server Transact Basic to Expert - Primary Key Adding to Existing table
WhatsApp
Karthikeyan Anbarasan
14y
3.2
k
0
0
25
Blog
This blog shows how to add a primary key constraint to an existing table
Syntax:
ALter table tablename
Add Constraint(PK_tablename)
Primary Key (ColumnName)
Example:
Alter table emptable
Add Constraint(Pk_Emptable)
Primary Key(empid)
SQL Server Transact Basic to Expert - Primary Key Adding to Existing table
People also reading
Membership not found