Which command is used to remove a relation from an SQL?
2024
Which command is used to remove a relation from an SQL?
- A.
Drop table
- B.
Delete
- C.
Purge
- D.
More than one of the above
- E.
None of the above
Attempted by 1882 students.
Show answer & explanation
Correct answer: A
Correct Answer: Drop table / ड्रॉप टेबल
To remove a relation (table) completely from an SQL database, the correct command is DROP TABLE.
This command deletes the table structure along with all its data and constraints permanently.
हिन्दी व्याख्या
SQL डेटाबेस से किसी रिलेशन (टेबल) को पूरी तरह हटाने के लिए सही कमांड DROP TABLE है।
यह कमांड टेबल की संरचना और उसमें मौजूद सभी डेटा को स्थायी रूप से मिटा देता है।
Why other options are incorrect / अन्य विकल्प गलत क्यों हैं
DELETE: This command removes only the data rows from a table, not the table structure itself.
Purge: This is not a standard SQL command for removing relations.
हिन्दी में: DELETE कमांड केवल पंक्तियों (rows) को हटाता है, टेबल को नहीं। PURGE मानक SQL कमांड नहीं है।