---
title: "MySQL查看表结构"
author: "finux"
date: "2010-04-10T23:51:42Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2010-04-10T23:51:42Z"
id: 640994
url: "https://finux.iteye.com/blog/640994"
---

MySQL上面查看表结构的方式：

 

1\. desc table\_name; --describe table\_name

 

2\. show columns from table\_name;

 

3\. show create table table\_name;

 

4\.

use information\_schema;

select * from columns where table\_name = 'table\_name';

 

--呵呵。。。不少吧，第1种最简单了，需要比较详细的信息选第3种或第4种比较合适~