121
GB
What is CREATE TEMPORARY TABLE and what is its scope?
IN
क्रिएट टेम्परेरी टेबल क्या है और इसका दायरा क्या है?
A
Creates a table that is read-only
एक तालिका बनाता है जो केवल पढ़ने योग्य है
B
Creates a table that is shared across all sessions but deleted after 24 hours
एक तालिका बनाता है जिसे सभी सत्रों में साझा किया जाता है लेकिन 24 घंटों के बाद हटा दिया जाता है
C
Creates a table in a temporary schema visible to all users
सभी उपयोगकर्ताओं के लिए दृश्यमान एक अस्थायी स्कीमा में एक तालिका बनाता है
D
Creates a table that is visible only to the current session and is automatically dropped when the session ends or connection closes
एक तालिका बनाता है जो केवल वर्तमान सत्र के लिए दृश्यमान होती है और सत्र समाप्त होने या कनेक्शन बंद होने पर स्वचालित रूप से हटा दी जाती है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Temporary tables: session-scoped, visible only to the creating session (other sessions cannot see it), automatically dropped on session end. Useful for: storing intermediate results, breaking complex queries into steps, avoiding repeated subquery execution.
व्याख्या (हिन्दी)
अस्थायी तालिकाएँ: सत्र-क्षेत्र, केवल निर्माण सत्र के लिए दृश्यमान (अन्य सत्र इसे नहीं देख सकते), सत्र के अंत में स्वचालित रूप से हटा दी जाती हैं। इसके लिए उपयोगी: मध्यवर्ती परिणामों को संग्रहीत करना, जटिल प्रश्नों को चरणों में तोड़ना, बार-बार सबक्वेरी निष्पादन से बचना।