Drop a table only if it exists

IF EXISTS avoids an error when the table is already gone. DROP cannot be undone.

SQL · Drop a table only if it existsBeginner
DROP TABLE IF EXISTS temp_report;

CREATE TABLE temp_report (id INT, label VARCHAR(40));
DROP TABLE temp_report;
drop tableif exists