Use:
Array a = rs.getArray("is_nullable");
String[] nullable = (String[])a.getArray();
As explained here
Array
is SQL type, getArray()
returns an object to cast to java array.
More Related Contents:
- How do I get the size of a java.sql.ResultSet?
- Is it possible to specify the schema when connecting to postgres with JDBC?
- Getting java.sql.SQLException: Operation not allowed after ResultSet closed
- How to map a PostgreSQL array with Hibernate
- When to close Connection, Statement, PreparedStatement and ResultSet in JDBC
- How to get a value from the last inserted row? [duplicate]
- JDBC driver throws “ResultSet Closed” exception on empty ResultSet
- org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
- What is the most recommended way to store time in PostgreSQL using Java?
- JDBC ResultSet get columns with table alias
- How to read all rows from huge table?
- Execute anonymous pl/sql block and get resultset in java
- ResultSet: Retrieving column values by index versus retrieving by label
- Driver JDBC PostgreSQL with Android [duplicate]
- How do I use PostgreSQL JSON(B) operators containing a question mark “?” via JDBC
- Java JDBC ignores setFetchSize?
- Hibernate, Postgres & Array Type
- ResultSet.getString(1) throws java.sql.SQLException: Invalid operation at current cursor position
- how to copy data from file to PostgreSQL using JDBC?
- How to get row count using ResultSet in Java?
- How to get the number of columns from a JDBC ResultSet?
- How do I get the row count in JDBC?
- Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
- Postgres UUID JDBC not working
- Array with UserType in Hibernate and PostgreSQL –> MappingException
- How to convert Java String into byte[]?
- Sort a two dimensional array based on one column
- Grab a segment of an array in Java without creating a new array on heap
- How to convert a Byte Array to an Int Array
- Array of function pointers in Java [duplicate]