Search notes:

SQLite: drop table

Dropping a table only if it exists

In order to suppress error messages, SQLite supports the drop table if exists clause which only tries to drop a table if it in fact does exist:
create table tq84_table (a, b, c);

drop table if exists tq84_table;

drop table if exists tq84_table;
Github repository about-sqlite, path: /tables/drop_if_exists.sql
See also Dropping a view only if it exists

See also

table
create table

Index