How to Check if a Table Exists in SQLite

In SQLite, we can query the sqlite_schema table to find out whether a given table exists.

Prior to SQLite version 3.33.0, this table was referred to as sqlite_master (it can still be referred to as such in subsequent releases for backwards compatibility).

Read more