Delete a table definition and all rows.
Section: create and alter tables
Drop a table if it exists
sql
sql
DROP TABLE IF EXISTS old_logs;Explanation
Always double-check the target table before dropping in shared environments.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing create and alter tables