What are constraints? Explain different types of
constraints?
Answer Posted / henry
Constraints are used to restrict or protect the data and
accessing from the table
There are 5 types of constraints available,
That,
1.Primary-which is not allowed duplication and Null values
2.Unique-Which is also Not allowed duplication But It is
allowed one single null values
3.Foreign - Which is allowed duplication and Null values.
But It refers Value from primary Key table to its own table
Value.
4.Check Constratints
5.Not null
| Is This Answer Correct ? | 5 Yes | 8 No |
Post New Answer View All Answers
What are scalar functions?
What is the difference between executequery () and executeupdate ()?
Explain “@@rowcount” and “@@error” in sql server?
Can a synonym name of a table be used instead of a table name in a select statement?
Tell me what are the essential components of sql server service broker?
What structure can you implement for the database to speed up table reads?
What do you understand by hotfixes and patches in sql server?
What is #temp and @table variable in SQL server?
What program is used to store the data source file?
What objects does the fn_my_permissions function reports on? : sql server security
Is it possible to call a stored procedure within a stored procedure?
Explain the steps needed to create a scheduled job?
What are the disadvantages of using querystrings to send data from one page to another?
Explain the difference between HTTP and HTTPS in database?
How to insert new line characters into strings?