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

发布时间: 2012-12-27 10:17:10 作者: rapoo
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";
?
