Database - Introduction to SQL - Discussion
Discussion Forum : Introduction to SQL - General Questions (Q.No. 8)
8.
ON UPDATE CASCADE ensures which of the following?
Discussion:
19 comments Page 1 of 2.
SIRISHA said:
5 months ago
These are easily understandable explanations. Thanks all.
Abhi said:
7 years ago
Delete or update the row from the parent table, and automatically delete or update the matching rows in the child table.
Both ON DELETE CASCADE and ON UPDATE CASCADE are supported.
Specifying RESTRICT (or NO ACTION) is the same as omitting the ON DELETE or ON UPDATE clause.
Both ON DELETE CASCADE and ON UPDATE CASCADE are supported.
Specifying RESTRICT (or NO ACTION) is the same as omitting the ON DELETE or ON UPDATE clause.
(2)
Jitendra Pal said:
8 years ago
Thanks for the explanation @Gayatri.
(1)
Kannan said:
9 years ago
Thanks for all to give the better explanation.
Gayatri said:
9 years ago
ON UPDATE CASCADE indicates that if we update the parent, then the change is cascaded (affected) to the child easily.
However, Data integrity means maintaining and assuring the accuracy and consistency of data over its entire life-cycle. Therefore, Cascade directly leads to data integrity.
For Example: If you delete a company, you might also want to delete the company's history of addresses.
However, Data integrity means maintaining and assuring the accuracy and consistency of data over its entire life-cycle. Therefore, Cascade directly leads to data integrity.
For Example: If you delete a company, you might also want to delete the company's history of addresses.
(11)
Satya said:
9 years ago
In oracle parent-child relation table is there on that time you delete the parent record or row then it shows error.
It means the parent table is associated with a child that why the parent record not delete. If u delete the parent records before we drop the child table record, it is not possible to the real time that why we are using cascade keyword mention in child table creation otherwise you drop the parent time use.
EX: Drop table parent table name cascade.
It means the parent table is associated with a child that why the parent record not delete. If u delete the parent records before we drop the child table record, it is not possible to the real time that why we are using cascade keyword mention in child table creation otherwise you drop the parent time use.
EX: Drop table parent table name cascade.
Sagar jadhav said:
10 years ago
If we apply cascade property then we can perform delete, update operation even if primary key and foreign keys are applied to main and child table.
Ramsha Khan said:
1 decade ago
Cascade means whenever you will perform any modification in a data that has its key as a foreign key in another table.
The same modification will be performed in the another tables on rows which have that foreign key.
The same modification will be performed in the another tables on rows which have that foreign key.
(1)
Rahul Jain said:
1 decade ago
The accuracy and consistency of stored data, indicated by an absence of any alteration in data between two updates of a data record. Data integrity is imposed within a database at its design stage through the use of standard rules and procedures, and is maintained through the use of error checking and validation routines.
And by the means of cascade it is ensured that all the related table which contain the updated data will be updated when an row is updated. And the effect would be reflected.
And by the means of cascade it is ensured that all the related table which contain the updated data will be updated when an row is updated. And the effect would be reflected.
Bhagwat said:
1 decade ago
How actually the data integrity is ensured in the cascade?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers