Statement.setMaxFieldSize
Interface Overview | Interface Members | This Package | All Packages
Syntax
public abstract void setMaxFieldSize( int max ) throws SQLException
Parameters
- max
the new max column size limit; zero means unlimited
Description
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.
Exceptions
SQLException if a database-access error occurs.