---
title: "Mysql 读取 表结构"
author: "msnvip"
date: "2008-01-19T12:05:24Z"
tags: []
slug: "mysql"
draft: false
lastmod: "2008-01-19T12:05:24Z"
id: 157561
url: "https://msnvip.iteye.com/blog/157561"
---

```sql
select `TABLE_NAME` from `INFORMATION_SCHEMA`.`TABLES` where `TABLE_SCHEMA` = 'truck_development' and `TABLE_TYPE` = 'BASE TABLE'
select * from information_schema.tables where table_schema = 'truck_development';
select * from information_schema.columns
select data_type, count(*) from information_schema.columns where table_schema = 'truck_development' group by data_type

```