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 - Add Unique Constraints to Existing Table
WhatsApp
Karthikeyan Anbarasan
14y
3.5
k
0
0
25
Blog
This blog shows how to add UNIQUE constraint to the existing table.
Syntax:
Alter table tablename
Add contraint(ConstraintName)
Unique(ColumnName)
Example:
Alter table emptable
Add Constraint(Unq_emptable_empsalary)
Unique(empsalary)
SQL Server Transact Basic to Expert - Add Unique Constraints to Existing Table
Recommended related topics
Membership not found