2013-12-04 3 views
-2

У меня есть файл значений csv Я заполнял данные, которые я хочу импортировать в таблицу mysql, используя php my admin.mysql Импорт данных csv в таблицу

При импорте файла csv я получаю это сообщение об ошибке «Недопустимое количество столбцов в CSV-входе в строке 11.»

В таблице 6 столбцов.

Это текст в строке 11 (я использовал «+» в качестве разделителя столбцов):

bue+rio+Full day all inclusive fly fishing dorado y tararira en San Pedro+buerio160+<a href='bue1_10.php#toursbue' title ='click for photos and detailed information about Dorado & Tararira (dogfish) Fly Fishing all inclusive Experience'>Dorado & Tararira (dogfish) Fly Fishing all inclusive Experience</a> (full day).+<b><a href='bue1_10.php#toursbue' title ='click for photos and detailed information about Dorado & Tararira (dogfish) Fly Fishing all inclusive Experience'>Dorado & Tararira (dogfish) Fly Fishing all inclusive Experience</a></b>.<br>Enjoy the incomparable experience of fly fishing Dorado and Tararira (dogfish), surrounded by a unique landscape.<br>Located very close to Buenos Aires city (a 1-hour-and-a-half drive), San Pedro consists of a delta where hundreds of streams and channels get together, giving home to these species, so desired by fly fishermen. This tour is done in private basis (full day). 

Как вы можете видеть, что есть 5 «+» знаки, которые разграничивают 6 столбцов. Я все равно получаю недопустимую ошибку столбца.

Я пробовал много разных вещей, чтобы решить эту проблему более чем на 2 часа, поэтому я чувствую себя очень расстроенным (и идиотом!). Надеюсь, что кто-то может просветить меня на том, что я делаю неправильно. У меня есть полный файл csv, если вам это нужно.

Спасибо тонну!

Фред

+1

Если вы используете ' + ', чтобы отделить столбцы, это не файл с разделителем _comma_. –

ответ

0

я рассчитывать только 4 «+» в строке 11 означает, что будет 5 столбцов в CSV-файл на этой линии, в то время как ваша таблица имеет 6 столбцов

bue 
+ 
rio 
+ 
Full day all inclusive fly fishing dorado y tararira en San Pedro+buerio160 
+ 
<a href='bue1_10.php#toursbue' title ='click for photos and detailed information about  Dorado & Tararira (dogfish) Fly Fishing all inclusive Experience'>Dorado & Tararira (dogfish) Fly Fishing all inclusive Experience</a> (full day). 
+ 
<b><a href='bue1_10.php#toursbue' title ='click for photos and detailed information about Dorado & Tararira (dogfish) Fly Fishing all inclusive Experience'>Dorado & Tararira (dogfish) Fly Fishing all inclusive Experience</a></b>.<br>Enjoy the incomparable experience of fly fishing Dorado and Tararira (dogfish), surrounded by a unique landscape.<br>Located very close to Buenos Aires city (a 1-hour-and-a-half drive), San Pedro consists of a delta where hundreds of streams and channels get together, giving home to these species, so desired by fly fishermen. This tour is done in private basis (full day). 
Смежные вопросы