What are constraints? Explain different types of
constraints?

Answer Posted / manish nagar

Constraints are used to limit the type of data that can go
into a table.

Constraints can be specified when a table is created (with
the CREATE TABLE statement) or after the table is created
(with the ALTER TABLE statement).

NOT NULL
UNIQUE
PRIMARY KEY
FOREIGN KEY
CHECK
DEFAULT

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we Backup SQL Azure Data?

86


What is a filestream?

552


What do you understand by a stored procedure?

598


What are diverse clauses that form a part of sql?

596


What are the disadvantages of primary key and foreign key in SQL?

630






What is a natural primary key?

522


What are the different types of lock modes in sql server 2000?

487


What do you know about system database? : SQL Server Architecture

488


Can you move the resources after pausing the node? : sql server database administration

594


what are the three command line utilities and what are their primary functions?

101


How can a database be repaired?

566


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

656


When do you think a developer should use sql server-based cursors?

520


What does it mean to normalize a database and why would you do it?

528


What are the character string functions supported by sql server 2005?

516