Constraints in Oracle PL SQL Interview Questions And Answers For Experience & Freshers | Interview Preparation

Constraints in Oracle PL SQL Interview Questions And Answers For Experience & Freshers | Interview Preparation

Constraints used to stop invalid data entry into table. Constraints are created on table column.

Types of the constraints:

1) Not null

Not accept null values but will accept duplicate values.
Not null constraints does not support table level.

2) Unique -

Unique constraints does not accept duplicate values but will accept null values.
Unique constraints support column level, table level.

3) Primary key

Primary key is used for identifying row uniquely in a table.
Primary key does not accept duplicate values, null values.
There can be only one primary key in a table. primary key support column level, table level.

Composite primary key -

Common primary key for multiple columns is called composite primary key.

4) Foreign key

If you want to establish relationship between tables then we must use referential integrity constraint foreign key.
One table foreign key must belongs to another table primary key and primary key, foreign key column must belong to same datatype. foreign key accept duplicate, null values. foreign key support column level, table level.

5) Check constraint -

Check constraints used to define logical condition according to client business rule. check constraints does not work with sysdate.

Please do check our daily posts, videos for beneficial informations, in case of any additional queries please do contact us, we are happy to assist you.

Please Do SUBSCRIBE our Youtube Channel and Support us :-
https://www.youtube.com/a4uofficial

If any difficulties regarding our posts, videos or other problem you can direct contact us:- allforyoucreators@gmail.com

If you found this post was helpful then please don't forget to SUBSCRIBE our channel.
Subscribe us for more such posts, videos and updates.. It's Free!!

For Businesses Inquiries :- allforyoucreators@gmail.com
_____________________________________________________________________________

Join Us on Social Media -
Like our Facebook Page :- https://www.facebook.com/a4u0fficial/

PLEASE SUBSCRIBE US FOR MORE POSTS, VIDEOS AND STAY TUNED..
CREATIVE, INFORMATIVE & BENEFICIAL CONTENTS TO BE FOUND ON OUR CHANNEL!!
BECAUSE WE KEEP UPLOADING VIDEOS ON YOUTUBE FOR YOU..
ALL WE NEED IS YOUR SUPPORT ❤

=▶ Thanks for your Love and Support ◀=

Copyright ©All For You Official

Post a Comment

0 Comments