Oracle 10g SQL: Module 11: Constraints
Oracle 10g SQL: Module 11: Constraints
Copyright 2009 Accenture All Rights Reserved. Accenture, its logo, and Accenture High Performance Delivered are trademarks of Accenture.
Module 11 Objectives
Upon completing this module the learner will be able to:
Explain constraints
Create a table using syntax for constraints
Explain and use PRIMARY KEY, UNIQUE, and FOREIGN KEY
constraints
Describe how to impose constraints by altering the table
Describe how to drop, enable, or disable constraints
Example:
Unique constraint
on email (jsmith)
violated
Unique condition
of primary key
(emp_id) violated
Foreign constraint
on dept_id violated
Example:
Example:
Example: