Computer AwarenessHardIBPS SO IT · IBPS PO Mains

Which SQL command removes all the rows of a table AND the table's definition, so the table no longer exists?

  1. A. TRUNCATE TABLE
  2. B. DELETE FROM
  3. C. DROP TABLE
  4. D. ALTER TABLE

Correct answer: C. DROP TABLE

DROP removes the data and the structure. TRUNCATE and DELETE without WHERE empty the table but leave its definition in place.

हिंदी में

कौन-सा SQL कमांड तालिका की सभी पंक्तियों और तालिका की परिभाषा, दोनों को हटा देता है, जिससे तालिका का अस्तित्व ही नहीं रहता?

  1. A. TRUNCATE TABLE
  2. B. DELETE FROM
  3. C. DROP TABLE
  4. D. ALTER TABLE

उत्तर: C. DROP डेटा और संरचना दोनों को हटाता है। बिना WHERE के TRUNCATE और DELETE तालिका को खाली कर देते हैं पर उसकी परिभाषा बनी रहती है।

More Computer Awareness questions

Exams that ask this topic