What is ON DELETE CASCADE?

Answers were Sorted based on User's Feedback



What is ON DELETE CASCADE?..

Answer / tulsi

The main use of ON DELETE CASCADE is to delete the child
records automatically from a table when the related records
from master table is deleted.

Assign the ON DELETE CASCADE clause while creating the
foreign key

Is This Answer Correct ?    17 Yes 0 No

What is ON DELETE CASCADE?..

Answer / vilas

Yes,its true and won't display any error while deleting the
master table.

Is This Answer Correct ?    5 Yes 1 No

What is ON DELETE CASCADE?..

Answer / ansupriya

If child record exists user cannot delete parent record.
Using on delete cascade on foreign constraint user can delete parent record .
Same time automatically it will delete the child record.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc

1 Answers   IAS,


Write one update command to update seqno field of a table on the basis of row number.

4 Answers   HCL,


How packaged procedures and functions are called from the following?

2 Answers  


how to debugg a procedure or package using dbms_output.put_line in plsql

1 Answers   Polaris,


Give the structure of the procedure ?

1 Answers  






how many sql dml commands are supported by 'mysql'? : Sql dba

0 Answers  


Explain what is table in a database?

0 Answers  


What is on delete set null?

0 Answers  


what are the differences among these table level lock modes - IN SHARE MODE, IN SHARE UPDATE MODE, IN EXCLUSIVE MODE ?

3 Answers   HCL,


What is integrity constraints?

5 Answers   Ramco, Satyam,


What is output spooling in sql*plus?

0 Answers  


How do you remove duplicates without using distinct in sql?

0 Answers  


Categories