我有一个MS SQL DB(非常大)和MySQL。我必须通过SQL将数据从MS SQL DB移动到MySQL。这意味着源数据和目的地数据不是相同的结构。更新源数据时,更新将反映到destionation中。请给我一个合适的建议吗?
非常感谢任何建议。
答案 0 :(得分:1)
最干净的方式是使用存储过程,因为它不是一个完整的移民。通过这样做,你将掌控一切。 MSSQL有一个很好的功能链接服务器,有点慢,但在大多数情况下是值得的。您可以在此处找到相关说明:http://www.sqlservercentral.com/Forums/Topic340912-146-1.aspx
一个例子:
UPDATE your_mysql_database.dbo.your_mysql_table SET col1=...
答案 1 :(得分:0)
要从MSSQL迁移到MYSQL,请使用 MYSQL Migration Toolkit
要下载并使用MYSQL Migration Toolkit,请使用以下链接http://dev.mysql.com/downloads/gui-tools/5.0.html
MySQL Workbench迁移向导旨在通过在配置和管理复杂迁移过程的所有阶段提供可视,点和点易用性来节省DBA和开发人员的时间:
Database migrations - enables migrations from Microsoft SQL Server, PostgreSQL, Sybase ASE, Sybase SQL Anywhere, SQLite, and more.
Migration project management - allows migrations to be configured, copied, edited, executed and scheduled.
Source and Target selection - allows users to define specific data sources and to analyze source data in advance of the migration.
Object migration - allows users to select objects to migrate, assign source to target mappings where needed, edit migration scripts and create the target schema.
Data migration - allows users to map source and target data and data types, set up data transfer and assign post data transfer events where needed.
Version Upgrades - using migration users can easily move databases off older MySQL versions to the latest.