Resultset Java Column Names. SystemoutprintlnColumn Name of 1st column. ResultSet r stmt.
To get the column name on the result set you need to use getMetaData method. ResultSetMetaData metadata resultSetgetMetaData. I can not find any methods for this in javasqlResultSet.
Every ResultSet object is associated with one ResultSetMetaData object.
The ResultSet interface provides getter methods getBoolean getLong and so on for retrieving column values from the current row. In this example we will discuss how to get column names from a database table using javasqlResultSet. For accessing the file I use code similar to the example on the CsvJdbc website. Flag 1 answer to this question.