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

Answer Posted / bimaleswar patel

Constraints are used to limit the type of data that can go
into a table.
two basic types of constraints are there
1.column level
2.table level
the difference is that column level constraints are apply
only to one column where as table level constraints are
apply to whole table
Constraints are declare at the time of table creation using
CREATE TABLE command

there are 6 constraints used in oracle
1.NOT NULL
2.UNIQUE
3.PRIMARY KEY
4.CHECK
5.DEFAULT
6.REFERENCES

Is This Answer Correct ?    96 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is merge statement?

798


Why should one not prefix user stored procedures with ‘sp_’?

805


What is the use of tempdb? What values does it hold?

742


How to filter out duplications in the returning rows in ms sql server?

809


What is a file group?

788






how many triggers you can have on a table? : Sql server database administration

704


What is importing utility?

717


How to invoke a trigger on demand?

725


What do you mean by data manipulation language?

764


What are the two authentication modes in sql server?

782


Can two different columns be merged into single column? Show practically?

820


Do you know sql server 2008 backup compression?

742


What are magic tables in sql server?

785


Can binary strings be used in arithmetical operations?

681


Difference between drill down and drill through report.

726