Java and Database Connectivity
|
Gotchas
-
A ResultSet becomes invalid when the next ResultSet with
the same statement is asked for
-
A ResultSet becomes invalid when its Statement is closed
-
A Statement becomes invalid when it's connection is closed
-
If you don't explicitly release connections, you will run
out of resources