Permanently removes the table definition, all data, indexes, triggers, and constraints. Cannot be undone (unless in a transaction that rolls back, in some DBs).
DROPTABLE IF EXISTS old_customers;
Why interviewers ask this
Topic: What does DROP TABLE do?. Expect to explain the idea in your own words, show correct syntax (PostgreSQL / MySQL / SQL Server differences if relevant), and mention edge cases (NULL, duplicates, transaction safety, indexes).
How to answer live
Дайте определение или напишите запрос.
Приведите один конкретный пример.
Обратите внимание на распространенную ошибку и на то, как можно проверить результат.
Итог
Ключевой вывод для собеседования: что делает DROP TABLE?