106
GB
What does ON DELETE CASCADE in a FOREIGN KEY constraint specify?
IN
विदेशी कुंजी बाधा में ऑन डिलीट कैस्केड क्या निर्दिष्ट करता है?
A
Prevent deletion of parent rows that have child references
उन मूल पंक्तियों को हटाने से रोकें जिनमें बाल संदर्भ हैं
B
Delete the foreign key constraint when parent is deleted
पेरेंट हटा दिए जाने पर विदेशी कुंजी बाधा हटा दें
C
When a referenced row in the parent table is deleted, automatically delete all corresponding rows in the child table that reference it
जब मूल तालिका में एक संदर्भित पंक्ति हटा दी जाती है, तो चाइल्ड तालिका में इसका संदर्भ देने वाली सभी संबंधित पंक्तियाँ स्वचालित रूप से हटा दी जाती हैं
D
When a child row is deleted, automatically delete the parent row
जब कोई चाइल्ड पंक्ति हटा दी जाती है, तो मूल पंक्ति स्वचालित रूप से हटा दी जाती है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
ON DELETE CASCADE: automatically propagates deletes from parent to child. When parent row is deleted, all child rows with matching FK are automatically deleted. Also: ON DELETE SET NULL (set FK to NULL), ON DELETE RESTRICT/NO ACTION (prevent parent deletion if child references exist).
व्याख्या (हिन्दी)
डिलीट कैस्केड पर: स्वचालित रूप से माता-पिता से बच्चे तक डिलीट को प्रसारित करता है। जब मूल पंक्ति हटा दी जाती है, तो मिलान वाली FK वाली सभी चाइल्ड पंक्तियाँ स्वचालित रूप से हटा दी जाती हैं। इसके अलावा: डिलीट सेट शून्य पर (एफके को शून्य पर सेट करें), डिलीट प्रतिबंध/कोई कार्रवाई नहीं (यदि बच्चे के संदर्भ मौजूद हैं तो पैरेंट डिलीट को रोकें)।