---
title: "Android  Sqlite数据库中判断某个表是否存在的SQL语句"
author: "何不笑"
date: "2012-12-15T14:38:08Z"
tags: []
categories: ["移动开发"]
slug: "android-sqlite-sql"
draft: false
lastmod: "2012-12-15T14:38:08Z"
id: 1748390
url: "https://wait7758521.iteye.com/blog/1748390"
---

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

 

![](http://dl.iteye.com/upload/attachment/0077/9491/a6507267-f150-3067-adc2-94abefa5314a.png)