getString() always return 255 when column is larger than 255

I have created a table with a column(varchar(1200), then insert some data to this table.

When use Jdbc to get the value of this column, it always return 255 chars, so, we need to solve

it via:

 

select convert(text, columnName) from table

 

then use getString to return the real value. 

你可能感兴趣的:(getString() always return 255 when column is larger than 255)