I am reading data from excel sheet using jdbc. One string column has a value with 300 characters long. I am using the following statement
This works fine for all other values. But when I read the value with 300 characters long. It will read only 250 charactes. The remaining characters are truncated. Any idea or pointer to resolve this problem ?
Might be a driver limitation of some kind, but in general, there's no such limit in most JDBC drivers (at least not lower than 2000 characters). It's probably drawing the line at ~256 because of character encoding.
What driver are you using? It might be best to consult the makers of the driver on the limit.