8.7.18 isNullable(int column)
- Organization of this subsection
(1) Function
This method returns a value indicating whether the null value can be set in a specified column.
(2) Format
public synchronized int isNullable(int column) throws SQLException
(3) Arguments
- int column
-
Specifies a column number (where the first column is 1).
(4) Return value
The method returns one of the following values:
-
ResultSetMetaData.columnNoNulls: The null value cannot be set.
-
ResultSetMetaData.columnNullable: The null value can be set.
(5) Exceptions
If the specified column value is 0 or less, or is greater than the number of columns in the table, the JDBC driver throws an SQLException.