提示:Mysql可以用以下软件直接导出。其他数据库可以导成Mysql之后再导入
如果是MYSQL数据库可以通过导出软件导出
链接:https://pan.baidu.com/s/18VauprV9DMNtknfPY6AI7Q
提取码:9bxu
导出数据库数据字段
SELECT
TABLE_NAME AS ‘表名’,
COLUMN_NAME ‘字段名’,
(CASE COLUMN_KEY WHEN ‘PRI’ THEN ‘true’ ELSE ‘’ END) AS ‘主键’ ,
(CASE EXTRA WHEN ‘auto_increment’ THEN ‘true’ ELSE ‘’ END) AS ‘自增’ ,
DATA_TYPE AS ‘数据类型’,
IS_NULLABLE AS ‘是否为空’,
COLUMN_DEFAULT AS ‘默认值’,
column_comment AS ‘描述’
FROM
information_schema.columns
WHERE table_schema = ‘database’ –指定库
AND table_name = ‘text’ –指定表
ORDER BY TABLE_NAME,ORDINAL_POSITION
也可以根据自己需要去增加减少字段,可以查看数据库 information_schema.columns表