mysql命令行如何得到表结构

show create table 表名

导出表结构:

mysqldump -d  数据库 表名 >demo.sql

原文地址:https://www.cnblogs.com/tywei/p/2524583.html