Oracle SQL, PLSQL, APEX How To's by Dr. S. Raghunathan - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

 

 

table, A foreign key can be defined in either a CREATE TABLE statement or an ALTER TABLE statement,

 

There are two tables defined as raak-trans-master and raak-trans-detail,  The linking key between these tables are voucher-number, In the raak-trans-master, only one record will be maintained for every voucher since voucher-number unique and multiple records will be maintained     in     raak-trans-Detail    on     the    same voucher-number, In otherwise, if one  wants to add record in raak-trans-file,  the given voucher-number must exist in the raak-trans-master file otherwise transactions will be denied,

The foreign key constraint should be raised in detail file i,e, on raak-trans-detail,

→ Object Browser under default table option

 

→ RAAK-TRANS-DETAIL

 

constraints

 

create

 

change the default constraint name as

 

raak-trans-detail-fk1 as constraint name

 

Foreign Key as constraint type

 

Find Your Next Great Read

Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.

Showing results for ""

Popular searches:

Romance Mystery & Thriller Self-Help Sci-Fi Business