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



猜你喜欢

转载自wait7758521.iteye.com/blog/1748390