java - Multiple ResultSet-s with single Statements in JDBC -


connection.createstatement() has no parameters. call statement.executequery() retrieve data.

can use single statement instance multiple different queries run?

yes, not concurrently. when re-execute statement, the previous result set closed:

a resultset object automatically closed when statement object generated closed, re-executed, or used retrieve next result sequence of multiple results.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -