Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
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
13y
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
Up Next
SQL Server Transact Basic to Expert - Unique Constraints Query
Ebook Download
View all
Introducing Microsoft SQL Server 2016
Read by 11k people
Download Now!
Learn
View all
Membership not found