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

Answer Posted / yashwanth

constraints are the rules enforced on data columns on a
table
use:constraints are used to limit the type of data that
can go in to a table

there are some constraints
a primarykey constraint
a unquekey constraint
a foreinkey constraint
a check constraint
a not null constraint
a default constraint

Is This Answer Correct ?    47 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find table changes in sql server?

862


What are different type of Collation Sensitivity?

779


Distinguish between commit and rollback?

744


What is the difference between seek predicate and predicate?

809


What happens to a trigger with multiple affected rows?

731


Why should we go for stored procedures? Why not direct queries?

814


Explain the usage of floor function in sql server.

725


Explain the phases a transaction has to undergo?

775


Explain the dbcc pintable command when would you use it?

720


How to convert a table data in XML format in sql server?

2341


How to get the definition of a trigger back?

801


Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

783


What is the difference between stored procedure and user defined functions?

913


Does sql server 2000 clustering support load balancing?

768


Can one drop a column from a table?

794