Our PL/SQL Database has three NUMBER variables that represent an exact Day, Month, and Year.
I want to read those values into a String in Java to display, but rs.getString("[Number_field]") trhows an "Invalid Column Name" exception, and rs.getInt("[Number_field]") does the same (See code snippet below). And, because the word "number" is used to describe every string conversion ever created in the history of coding, it is impossible for me to find a reference for the correct function to use for my ResultSet.
String sDate1= rs.getString("DATE_MNTH")+"/"+rs.getString("DATE_DT"+"/"+rs.getString("DATE_YEAR"));
Date date=new SimpleDateFormat("MM/DD/yyyy").parse(sDate1);
What is the correct way to read a PL/SQL NUMBER from a ResultSet?