SQL Server 数据库数据转Mysql数据
2019-04-20 本文已影响0人
printf200
1.使用Navicat工具进行转换
首先你要有一台电脑装有mysql和sqlserver

2.选择导入向导




3.下一步



在这里有个条件查询,如果有太多不想要的数据,或者字段类型有问题导致导入出错可以设置这里。

大功告成,下班吃饭。
补充:这个东西对SQLServer转MySQL数据类型转换的支持不是很好,要手动设置。但是导入数据没有问题,最好的方式是:
先使用工具:mss2sql将SQLServer的表转换成MYSQL的表,然后在使用此工具的ODBC导数据。
http://blog.csdn.net/andrew_wx/article/details/6832404
2014-11-26
问题记录:
1、SQLServer数据导入到MySQL时,mss2sql对bit类型的处理不太好,所以有bit类型的字段表导入后要更改长度为8,否则后续的导入操作将会失败。
2、数据导入的时候,如果是局域网数据库,那么要选择的类型为:

SQLServer的SQL语句专MySQL的SQL语句:
1、Insert自增列要给Null(如果是简写不写列名的话);
2、分页大致上都要改为MySQL的Limit;
3、表名不要出现dbo.等前缀;