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

Answer Posted / ns

constraints are like an a right or any event which can we
apply on our table or column, or its an rule of integrity
there is an types of constraint:-
1.primary key
2.foreign key
3.unique
4.check
5.default
6.not null

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is tempdb in sql server?

520


What is difference between count (*) and count 1?

517


What command is used to create a database in the sql server and how?

609


While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?

558


What is snapshot report?

129






Which data types generate inaccurate results if used with an = or <> comparison in a where clause of a sql statement?

541


Explain cursor as data base object?

583


What is the difference between drop table and truncate table?

495


What is a trigger what are the advantages of trigger?

531


Explain sql delete command?

614


where the connection string store in the database

1532


Why are sql functions used?

622


Explain the categories of stored procedure?

520


Explain what stored procedure sp_replcounters is used for? : sql server replication

1008


What is a transact-sql statement batch in ms sql server?

509