1561
GB
What does UPDATE...SET col = DEFAULT accomplish in SQL?
IN
SQL में UPDATE...SET col = DEFAULT क्या पूरा करता है?
A
Sets the column value to its defined DEFAULT value (as specified in the column definition) resetting it to the default without needing to know the actual default value
कॉलम मान को उसके परिभाषित डिफ़ॉल्ट मान पर सेट करता है (जैसा कि कॉलम परिभाषा में निर्दिष्ट है) वास्तविक डिफ़ॉल्ट मान को जानने की आवश्यकता के बिना इसे डिफ़ॉल्ट पर रीसेट करता है
B
Is invalid SQL syntax
अमान्य SQL सिंटैक्स है
C
Sets the column to NULL
कॉलम को NULL पर सेट करता है
D
Sets the column to 0
कॉलम को 0 पर सेट करता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
SET col = DEFAULT: resets a column to its defined default value, even if you do not know the exact default in your query. Useful for: resetting configuration values, resetting status fields, bulk-resetting optional fields. Works in PostgreSQL, MySQL, and standard SQL.
व्याख्या (हिन्दी)
SET col = DEFAULT: किसी कॉलम को उसके परिभाषित डिफ़ॉल्ट मान पर रीसेट करता है, भले ही आप अपनी क्वेरी में सटीक डिफ़ॉल्ट नहीं जानते हों। इनके लिए उपयोगी: कॉन्फ़िगरेशन मान रीसेट करना, स्थिति फ़ील्ड रीसेट करना, वैकल्पिक फ़ील्ड को बल्क-रीसेट करना। PostgreSQL, MySQL और मानक SQL में काम करता है।