Search code examples
javaexceljdbc-odbc

How to get value from resultset column name in java?


I'm reading value from Excel using jdbc-odbc in java ? One of the column name start with . how to read the from that column ? Im getting error unknown column while reading..

//String filesend = resultset.getString(".file send");

Please help me..


Solution

  • Did you try escaping the . ?
    A good idea would be to see the name of the column using ResultSetMetaData.getColumnName(index) method.