SQLite3でテーブル存在チェックを行う方法

SELECT COUNT(*) FROM sqlite_master WHERE TYPE=’table’ AND name=’存在確認するテーブル名’;

ネタ元

lightgauge.net