I have a resultSet that I am retrieving from my database:
String selStmt = "SELECT code_id, internal_code, representation, pos, decode(substr(internal_code, 5, 1), 'Q', 2, 1) as sorter, "
+ " to_char(term_start, 'MM-DD-YYYY') as sDate "
+ " FROM table1, terms WHERE code_id = 'SEARCH.TERMS' AND internal_code = terms.terms_id (+) ORDER BY 5, 4 ";
stmt = conn.prepareStatement(selStmt);
result = stmt.executeQuery();
Now I want to make these results into an array, I know that I can use the while loop to loop and get the results, but I can use them only once, I need to continue to use them throughout the rest of the page. I realized that this can be done using an array, but if there is an easier way, let me know, also if you need more information, please let me know.
source
share