SQLiteでテーブルが存在するか確認

select count(*) from sqlite_master where type='table' and name='<テーブル名>';

ネタ元