Android Sqlite数据库中判断某个表是否存在的SQL语句
select count(*) as isExsit from sqlite_master where type="table" and name=表名;
例如:
select count(*) as isExsit from sqlite_master where type="table" and name="categories";

select count(*) as isExsit from sqlite_master where type="table" and name=表名;
例如:
select count(*) as isExsit from sqlite_master where type="table" and name="categories";

暂无评论。
评论功能维护中,当前仅展示历史评论。