What is a constraint. Types of constraints ?

Answer Posted / pavani

Constraint means it is rule which you want to apply on the
table. There are two types of constraints.
1. Column Constraints: Applicable for that column only.
2. Table Constraints: Applicable for more than one column.

Column Constraints:
a. unique b. not null c. primary key d. foreign key
e.default f. check

Table constraints:
a. unique b. primary key c. foreign key d. check

Is This Answer Correct ?    26 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of views in sql?

542


What is null in pl/sql?

626


What's the difference between inner join and left join?

513


what is user defined functions? : Sql dba

552


Is inner join faster than left join?

637






Are sql database names case sensitive?

500


Why do we need sharding?

529


What is interval partition?

546


What are different types of functions in sql?

511


What are sql triggers used for?

515


How do I run a pl sql program?

629


Why do we use sql constraints?

662


How can you save or place your msg in a table?

523


Can you upgrade sql express to full sql?

520


What is a boolean in sql?

526