SELECT count(*) AS cnt FROM sqlite_master WHERE type='table' AND name='table_name';cnt will return 0, if the table doesn't exist, 1 if it does. 或者, SELECT name FROM sqlite_master WHERE type='table' AND name='{table_name}';This will return empty, if t
/****************************************************************************** ** This file is an amalgamation of many separate C source files from SQLite ** version 3.14.1. By combining all the individual C code files into this ** single large file