OraclePLSQL-Page5

                                                                            

πŸ‘‰Data Constraints

Business rules, which are enforced on data being stored in a table are called constraints.

Types of data constraints:

1)I/O Constraint

2)Business Rule Constraint


πŸ‘‰I/O Constraint

This data constraint determines the speed at which data can be inserted or extracted from a table. 

Types of I/O Constraint

✅Primary Key

✅Foreign Key

✅Unique Key


πŸ‘‰Primary Key

Primary Key is a column or a set of columns that uniquely identifies a row. Its main purpose is the record uniqueness.

Primary Key will not allow duplicate values.

Primary Key will also not allow null values.

One table can combine up to 16 columns in a composite primary key.


πŸ‘‰Primary Key Constraint defined at Column Level:

πŸ‘‰Primary Key Constraint defined at Table Level:

πŸ‘‰Simple Primary Key

A single-column primary key is called a simple primary key.


πŸ‘‰Composite Primary Key

A multicolumn primary key is called composite primary key.

Comments

Popular posts from this blog

SQL-ForeignKeyConstraint-Page6

Javascript-OOPs(Part3)-Inheritance - (9)

OraclePLSQL-Page3