Question

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

Option 1 : It is a DDL command that removes all rows and resets identity/auto-increment counters / यह एक DDL कमांड है जो सभी पंक्तियाँ हटाता है और आइडेंटिटी/ऑटो-इंक्रीमेंट काउंटर रीसेट करता है

Advertisement

Detailed Solution

सही उत्तर It is a DDL command that removes all rows and resets identity/auto-increment counters / यह एक DDL कमांड है जो सभी पंक्तियाँ हटाता है और आइडेंटिटी/ऑटो-इंक्रीमेंट काउंटर रीसेट करता है है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Which statement about the TRUNCATE command is TRUE? / TRUNCATE कमांड के बारे में कौन-सा कथन सत्य है?

1.
It is a DDL command that removes all rows and resets identity/auto-increment counters / यह एक DDL कमांड है जो सभी पंक्तियाँ हटाता है और आइडेंटिटी/ऑटो-इंक्रीमेंट काउंटर रीसेट करता है
2.
It can delete selected rows using a WHERE clause / यह WHERE क्लॉज़ से चुनी हुई पंक्तियाँ हटा सकता है
3.
It fires DELETE triggers once for every row removed / यह हटाई गई प्रत्येक पंक्ति के लिए DELETE ट्रिगर चलाता है
4.
It is slower than DELETE when removing all rows of a large table / बड़ी तालिका की सभी पंक्तियाँ हटाने में यह DELETE से धीमा है

Correct Answer: It is a DDL command that removes all rows and resets identity/auto-increment counters / यह एक DDL कमांड है जो सभी पंक्तियाँ हटाता है और आइडेंटिटी/ऑटो-इंक्रीमेंट काउंटर रीसेट करता है

TRUNCATE deallocates data pages (DDL), so it is fast, takes no WHERE clause, normally fires no row-level DELETE triggers, and resets identity seeds. / TRUNCATE डेटा पृष्ठों को डीलोकेट करता है (DDL), अतः यह तेज़ है, इसमें WHERE नहीं होता, सामान्यतः पंक्ति-स्तरीय DELETE ट्रिगर नहीं चलते, और आइडेंटिटी सीड रीसेट हो जाता है।

Downloaded from PrepSnap (prepsnap.in)