使用HeidiSQL将mysql数据库表结构导出到CSV
select column_name as 字段,column_type as 数据类型,data_type as 字段类型,character_maximum_length as 长度,is_nullable as 是否为空,column_default as 默认值,column_comment as 备注frominformation_schema.columnswheretable_sch
·
select column_name as 字段,
column_type as 数据类型,
data_type as 字段类型,
character_maximum_length as 长度,
is_nullable as 是否为空,
column_default as 默认值,
column_comment as 备注
from
information_schema.columns
where
table_schema = '数据库名称' and table_name = '表名称'
将“数据可名称”和“表名称”改为自己要导出的数据库名称和表名称即可,结果如下:

右键选择“导出表格的行”,跳出下面的会话框
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐


所有评论(0)