I have a question related to this method: st.execute(sql);
where st obviously is a Statement object.
Directly from this oracle java tutorial:
execute: Returns true if the first object that the query returns is a ResultSet object. Use this method if the query could return one or more ResultSet objects. Retrieve the ResultSet objects returned from the query by repeatedly calling Statement.getResutSet.
What is meant by "one or more ResultSet objects"? How is it possible to manage them once got an array of ResultSet
?
Whereas st.executeQuery(sql)
and st.executeUpdate(sql)
are very clear. It's not (at least to me) the aim of st.execute(sql)
which can also return an int as if it was updated a table.
Thanks in advance