What is ON DELETE CASCADE?
Answers were Sorted based on User's Feedback
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 |
Answer / vilas
Yes,its true and won't display any error while deleting the
master table.
Is This Answer Correct ? | 5 Yes | 1 No |
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 |
Difference between global and parameter variables?
Write a query to find five highest salaries from EMP table. (there is a column SALARY)
24 Answers Cap Gemini, iNautix,
Can we interchange parameters in procedure while calling
What are the basic techniques of indexing?
Is it important to partition hard disk?
write the Sql query for creating database backup?
Is mariadb nosql?
How to add Foreign key in a table after the creation of the table?
Why is %isopen always false for an implicit cursor?
Which sql most popular?
Can we insert delete data in view?
How do I add a database to sql?