ITeye博客

Android Sqlite数据库中判断某个表是否存在的SQL语句

何不笑 · 2012-12-15 14:38 · Android sqlite · 移动开发 · Markdown

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";

 

评论(0)

暂无评论。

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