开发者

Getting MySQL code from an existing database

I have a database (mdb file) that I am currently busy with. I would like to kn开发者_如何学编程ow if it is possible to generate MySQL code that would be used to create this database?


There are a couple of tools you can look at to try to do the conversion.

  1. DataPump
  2. Microsoft DTS (Nos Called SQL Server Integration Services)

Other option might be generate MySQL code from Access' DB MetaData you can access from JDBC, ODBC, ADO.NET or any other database access technology with metadata support. For this option you need to generate a piece of code (script). So it will only make sense if your access DataBase has a lot of table with a lot of columns or if you are planning to do this task several times.

Of course, using one of the mentioned tools will be faster if it works.


You can certainly write DDL to create and populate a MySQL database from the work that you've already done on Microsoft Access. Just put it in a text file that you execute using MySQL batch and you're all set.

If you intend to keep going with developing both, you'll want to think about how you'll keep the two in synch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜