generate sql script from tables

倖福魔咒の 提交于 2019-12-13 12:53:47

问题


alt text http://www.freeimagehosting.net/uploads/64fac9c8c4.gif

is it possible to generate sql scripts from for all tables ? i want to generate the sql script and import into another database server


回答1:


Select the tables you want to export, right click, scripts>create table script. It works in mysql, not sure about oracle.




回答2:


For anyone on the 3.4.0 version on OSX, I had to do it this way:

Select the DB
Session >> SQL Server >> Generate T-SQL Script
Select the Objects/Tables wanted

Saves to a file, but gives you no progress indicator, so give it a while to run.



来源:https://stackoverflow.com/questions/1062010/generate-sql-script-from-tables

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!