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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -