使用带有INSERT语句的MySQL Workbench导出表 [英] Export tables with MySQL Workbench with INSERT statements

查看:865
本文介绍了使用带有INSERT语句的MySQL Workbench导出表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试导出我在MySQL Workbench上拥有的数据库,但是在生成.sql文件上的INSERT语句时遇到了麻烦.

I am trying to export the DataBase i have at MySQL Workbench but I am having troubles to generate the INSERT statements on the .sql file.

我要导出数据,我对要导出的数据库进行了逆向工程.然后,我去

I order to export the data, I do the reverse engineering for the database i want to export. Then, i go to

文件/导出/转发工程师SQL CREATE脚本

File / Export/ Forward Engineer SQL CREATE Script

然后进入其中,我选择选项为表生成INSERT语句.

And once in there, i select the option Generate INSERT Statements for Tables.

结果仅生成用于创建表的代码.

The result only generates the code for the create tables.

是否可以为数据创建插入语句?

Is there any way to create the insert statements for the data?

谢谢

推荐答案

旧版本:

打开MySQL Workbench>主页>管理导入/导出(右下)/选择所需的DB>高级导出选项选项卡>完全插入[已选中]>开始导出.

Open MySQL Workbench > Home > Manage Import / Export (Right bottom) / Select Required DB > Advance Exports Options Tab >Complete Insert [Checked] > Start Export.

对于6.1及更高版本,感谢ryandlf:

单击管理"选项卡(在模式旁边),然后选择数据导出".

Click the management tab (beside schemas) and choose Data Export.

这篇关于使用带有INSERT语句的MySQL Workbench导出表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆