MySQL查看表结构命令


创建数据库
create database abc;


显示数据库

show databases;


使用数据库

use 数据库名;


直接打开数据库

mysql -h localhost -u root -p123456 -d 数据库名


显示表

show tables;


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

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

猜你喜欢

转载自blog.csdn.net/i7thtool/article/details/53019684