简体   繁体   English

从MSSQL导入MySQL CSV

[英]MySql CSV import from MSSQL

I've got a CSV file exported by MSSQL. 我有一个MSSQL导出的CSV文件。 When I try to import it into MySql, PhpMyAdmin returns "Invalid column count on line 2316". 当我尝试将其导入MySql时,PhpMyAdmin返回“第2316行的无效列数”。 I don't know why. 我不知道为什么 Can you help me? 你能帮助我吗? heres the code around line 2316: 这是围绕2316行的代码:

2312: 708;Nein;0;;Ja;Nein;0;Ja;;Ja;;Ja;;Ja;;8;;5;;;;Ja;Nein;Nein;Ja;Nein;Nein;Nein;Ja;Nein;Ja;Nein;Nein;Nein;Nein;Ja;Nein;Ja;Nein;Nein;Nein;Nein;Nein;Nein;Nein;Nein;Nein;Ja;Nein;Nein;Nein;Nein;Ja;Nein;Nein;Nein;Ja;1;Nein;;Nein;;Nein;;Ja;1;Nein;;Nein;;;5;Nein;;;Hildebrecht, Susanne;;040-65432154;tut@web.de;;;1
2313: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2314: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2315: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2316: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Charset of the File is UTF-8 and the Database has utf8_general_ci. 文件的字符集为UTF-8,数据库具有utf8_general_ci。 MySql Version is 5.1.43-nmm4-log. MySql版本是5.1.43-nmm4-log。

Thank you in advance! 先感谢您!

Refer: http://andrewodendaal.com/phpmyadmin-invalid-field-count-in-csv-input-on-line-1/ OR Quick fix for this problem is to change the delimiter symbol manually. 请参考: http : //andrewodendaal.com/phpmyadmin-invalid-field-count-in-csv-input-on-line-1/或此问题的快速解决方案是手动更改定界符。 Use semicolon ( ; ) as field delimiter instead of comma ( , ). 使用分号(;)代替逗号(,)作为字段定界符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM