mysql命令行查看表结构,字段等信息

1650阅读 0评论2016-06-03 dearyzy
分类:LINUX

mysql查看表结构命令,如下:


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


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


顺便记下:
show databases;
use 数据库名;
show tables;


创建数据库
create database abc;
上一篇:Linux下查看文件和文件夹大小
下一篇:没有了