explain the type of contraints

Answer Posted / reva ram sahu

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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a rule be bound to any column of any data type?

557


How do clustered indexes store data?

603


Explain about builtinadministrator?

582


What is db stored procedure?

460


What is the default port for SQL Server over a firewall?

579






What is the index requirement in SQL Azure?

70


Explain different forms of normalization?

519


What is the function of sql server agent windows service?

530


System variable and temporary variables

1700


Why do we use functions?

503


What is the difference between functions and scalar functions?

563


What is the library index called?

578


Can sql servers link to other servers like oracle?

459


What is the maximum length of an alert name?

594


How do you migrate data from mssql server to azure?

151