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
删除某一个数据库下面的所有表,但不删除数据库.该语句经过从concat拼接,最后查询出来的是删除表的语句,然后执行那些查询出来的语句就ok了select concat(‘drop table ‘,table_name,’;’) from information_schema.tables where table_schema=’对应数据库名称’;