-2

I have a table with some TEXT columns, all of them get value when I load the file into the table but the TEXT column with 100 length character does not work and shows null value. The source file is fixed width file and I have checked the character number and the proper length of the field.

Do I need to do any configuration to get a long TEXT field in the column?

Tushar Gupta - curioustushar
  • 58,085
  • 24
  • 103
  • 107
Niloo
  • 13
  • 6

1 Answers1

0

Try to check the encodings/character sets.
If the text file is e.g. utf-8 and your text column ist e.g. latin1 a 100 char text from the file may need more than 100 chars in the database table.

In this case you need to change the encoding or the length of the text column.

See also: http://dev.mysql.com/doc/refman/5.7/en/charset-mysql.html

h.m.i.13
  • 353
  • 1
  • 6
  • 17