Importing ODS to phpmyadmin error 1117: too many columns

841 views Asked by At

so I am currently testing one web application, and for that I need to import an excel file to phpmyadmin.

I need to import the file as an *.ods. To do that, I know I need to rename the file so that it matches the table name, and set values in first row to match columns. However, whenever I try to import the file, I get an error 1117: too many columns, listing all the unecessary empty columns in my ods file (F,G,H,I,J....).

Is there any way to remove those columns, or have them be ignored?

1

There are 1 answers

0
rufus On

A lot of things can wrong when you're importing a spreadsheet. If your boss highlighted row 70,000 the color "invisible" (yes kids, that's a color now), the row will stretch into infinity and give a too many columns error. Save as csv and you delete all that mess, but then you have to make sure your delimiters are nice and neat or your fields will wander into their neighbor's columns.