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?
- A. TRUNCATE TABLE
- B. DELETE FROM
- C. DROP TABLE
- 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 कमांड तालिका की सभी पंक्तियों और तालिका की परिभाषा, दोनों को हटा देता है, जिससे तालिका का अस्तित्व ही नहीं रहता?
- A. TRUNCATE TABLE
- B. DELETE FROM
- C. DROP TABLE
- D. ALTER TABLE
उत्तर: C. DROP डेटा और संरचना दोनों को हटाता है। बिना WHERE के TRUNCATE और DELETE तालिका को खाली कर देते हैं पर उसकी परिभाषा बनी रहती है।
More Computer Awareness questions
- An ORDERS table has CustomerID as a foreign key referring to CUSTOMER. A clerk tries to insert an order with CustomerID 9999, which does…
- Which SQL command is placed in the WRONG category?
- Which of the following is NOT shared by the threads of one process?
- Print jobs from many users are first stored on disk and sent to a slow printer one by one, so the CPU can carry on with other work. This…
- Which sequence correctly describes how a TCP connection is set up by the three-way handshake?
- How does the Harvard architecture differ from the von Neumann architecture?