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
What are the differences between left join and inner join in sql server?
What is a join in sql? What are the types of joins?
Explain index in sql server?
How to set database to be single_user in ms sql server?
What is the difference between Normalization and De-normalization?
How can you find out how many rows returned in a cursor?
Can we shrink data file in sql server?
How do I schedule a sql server profiler trace?
What is the difference between drop table and truncate table?
What is the parse query button used for?
What are distributed partitioned views?
Is sql server is free?
Do you know what is sql service broker?
What is the contrast between sql and mysql?
What are built in functions?