As the ResultSet
contains the data returned from the dynamic SQL, if there are any method to determine if the ResultSet
contains a particular column name?
For example , if I run rs.getString("Column_ABC")
but "Column_ABC"
does not really exist, it will throw out the exception.
How can I test if the ResultSet
can get a data from a column named "Column_ABC"
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…