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

    技术2026-05-18  6

    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. 

    最新回复(0)