adspace
How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?
Answer Posted / Sudhanshu Bajpai
To retrieve an entire row of data at once in JDBC, you can use the `ResultSet.getArray(int)` or `ResultSet.getObject(int)` methods which return a `java.sql.Array` or `java.sql.Object` respectively for that column. For SQL Server, you can also use the `SqlData` interface to retrieve complex types such as `UserDefinedTypes`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers