mysql查看表结构命令

来源:互联网 发布:js删除指定cookie 编辑:程序博客网 时间:2024/06/04 17:39
mysql查看表结构命令,如下:

desc 表名;
show columns from 表名;
describe 表名;
show create table 表名;

use information_schema
select * from columns where table_name='表名';

顺便记下:
show databases;
use 数据库名;
show tables
原创粉丝点击