Invalid field count in CSV input on line 1

后端 未结 6 1528
孤独总比滥情好
孤独总比滥情好 2021-01-16 14:15

I am trying to export an ODS file to CSV, but when I import into phpmyadmin - I get \"Invalid field count in CSV input on line 1.\"

File (it has more than two lines

6条回答
  •  孤独总比滥情好
    2021-01-16 14:31

    In Excel I saved the file as "Microsoft Office Excel Comma Separated Values File (.csv)"

    In Phpmyadmin:

    1. Select database you want to import table into.
    2. Click import tab.
    3. Select your file. Set FORMAT to CSV
    4. Leave Format-Specific Options alone except for ticking the "The first line of the file contains the table column names" box if you need to
    5. Click GO
    6. You then need to rename the table ( which will be called somthing like "TABLE 5" if its the 5th table in the DB). So select the table and using the Operations tab -> "Rename table to:"

提交回复
热议问题