`

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

 



  • 大小: 4.2 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics