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
Constraints on the whole table in SQL Server
WhatsApp
Venkatesan Jayakantham
13y
3.4
k
0
0
25
Blog
One of my blog reader have asked me a query, Is it possible to give constraints to all the columns in a table in a single shot?
CREATE TABLE dbo.Venkat_Table
(
id int primary key,
Name varchar(50) unique,
Age int Unique
)
Yes it's possible. We can provide the constraints.
Applying terms and conditions -> The constraints should not conflict with one another. Primary key constraints can be given only once for a table.
Cheers,
Venkatesan Prabu .J
Head - WWW.Kaashivinfotech.com
http://venkattechnicalblog.blogspot.com/
Constraints on the whole table in SQL Server
Up Next
How To Check If A Column Exists In SQL Server Table
Ebook Download
View all
Basic SQL Queries
Read by 19.4k people
Download Now!
Learn
View all
Membership not found