In jdbc

does the statement object contain the session id that the database returns for the current session? What does a result set contain?

0


a source to share


1 answer


As far as I know, no, Statement

do not have session IDs. The Java API specification for the classStatement

seems to support this. They are mainly Statement

used to execute SQL statements by specifying an SQL query using the method execute

.

A is ResultSet

used to get the results returned by executing a query through Statement

or PreparedStatement

.



JDBC (TM) Java Database Access The tutorials contain some information on these topics. The following sections are interesting:

0


a source







All Articles