---
title: "判断表是否存在"
author: "harbey"
date: "2010-01-14T09:48:02Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2010-01-14T09:48:02Z"
id: 569847
url: "https://harbey.iteye.com/blog/569847"
---

```java

select count(*) from information_schema.tables 
where table_schema = '数据库名' and table_name = '表名';

```