Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 2 : Child rows referencing it are deleted automatically / इसका संदर्भ देने वाली चाइल्ड पंक्तियाँ स्वतः हट जाती हैं

Advertisement

Detailed Solution

सही उत्तर Child rows referencing it are deleted automatically / इसका संदर्भ देने वाली चाइल्ड पंक्तियाँ स्वतः हट जाती हैं है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

A foreign key is defined with ON DELETE CASCADE. If a parent row is deleted, then: / एक फॉरेन की ON DELETE CASCADE के साथ परिभाषित है। यदि पैरेंट पंक्ति हटाई जाए, तो:

1.
Deletion is blocked while child rows reference it / चाइल्ड पंक्तियों के संदर्भ रहते हटाना अवरुद्ध होता है
2.
Child rows referencing it are deleted automatically / इसका संदर्भ देने वाली चाइल्ड पंक्तियाँ स्वतः हट जाती हैं
3.
The child foreign key values are set to NULL / चाइल्ड फॉरेन की मान NULL कर दिए जाते हैं
4.
The child foreign key values are set to their DEFAULT / चाइल्ड फॉरेन की मान उनके DEFAULT पर सेट हो जाते हैं

Correct Answer: Child rows referencing it are deleted automatically / इसका संदर्भ देने वाली चाइल्ड पंक्तियाँ स्वतः हट जाती हैं

CASCADE propagates the deletion to the referencing child rows; blocking the delete is RESTRICT/NO ACTION, and nulling the keys is SET NULL. / CASCADE डिलीट को संदर्भित चाइल्ड पंक्तियों तक प्रसारित करता है; डिलीट अवरुद्ध करना RESTRICT/NO ACTION है, और की को NULL करना SET NULL है।

Downloaded from PrepSnap (prepsnap.in)