What are constraints? Explain different types of
constraints?
Answer Posted / haritha
constraint is a rule which can not be voilated by end users.
Different types of constraints are available.They are:-
1)default constraint:-which is used to define a default
value.
2)primary key:-the key which does not allows duplication
and null values.
3)foreign key:-the key used to refer primary key defined
field in another table and it allows duplication.
4)null:-which allows NULL values.
5)not null:-which does not allows NULL values.
6)unique key:-which does not allows duplication but allows
NULL values.
| Is This Answer Correct ? | 283 Yes | 70 No |
Post New Answer View All Answers
How to create a stored procedure with a statement block in ms sql server?
How to create a testing table with test data in ms sql server?
What are the mathematical functions supported by sql server 2005?
what are different types of raid configurations? : Sql server database administration
Can we take the full database backup in log shipping?
Explain timestamp datatype?
How to choose all records from the table?
Give an example of why you would want to denormalize a database
Do you know what are the restrictions that views have to follow?
Why we use the openxml clause?
Why do we use non clustered index?
What is the name of the system variable that returns the number of rows affected by a SQL statement?
Explain full-text indexing?
What are filegroups in sql server?
Why do we use functions?