SQLite中:SELECT COUNT(*) as CNT FROM sqlite_master where type='table' and name='table_name';
Mysql中:"select COUNT(`TABLE_NAME`) from `INFORMATION_SCHEMA`.`TABLES` where `TABLE_SCHEMA`='database_name' and `TABLE_NAME`='table_name';
其中table_name是表名,database_name是数据库名