Statement.setMaxFieldSize Method
Sets the maximum column size limit.
Syntax
public void setMaxFieldSize(int max)
Run On
Called
Parameters
- max
Type: int
The new max column size limit; 0 means unlimited.
Remarks
The maxFieldSize limit (in bytes) is set to limit the size of data that can be returned for any column value; it only applies to binary, varbinary, longvarbinary, char, varchar, and longvarchar fields. If the limit is exceeded, the excess data is silently discarded. For maximum portability, use values greater than 256.