what is Constraint? How many types of constraints in SQL ?

Answer Posted / rehan khan

constraint enforces rules at the table level and prevent the deletion of a table if there are dependencies .

constraint type:

primary key
foreign key
unique
not null
null
check
constraints can be defined at the time of table creation or after table has been created.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You are doing log shipping due to some reasons it is failing. How you will proceed from there

1762


Tell me what is fill factor?

721


What are null values in ms sql server?

767


What is SQL Server?

864


How to manipulate data from one table to another table ?

732


When I delete any data from a table, does the sql server reduce the size of that table?

770


How to recover from sql injection? : sql server security

715


Explain the use of containers in ssis?

688


Is there any difference between primary key and unique with the not null condition?

706


last function used in MS Access to convert sql what function will use in sql

1832


Where cross join is used?

700


Explain Reporting Life Cycle?

102


What is log cache in sql server?

729


Differentiate between ms sql server reporting services vs crystal reports?

669


What is the difference between count and distinct count?

635