«
Prev
»
Next
Explain steps involved in writing a Java program using JDBC.
- Load the DB specific JDBC driver that communicates with the database.
- Open the connection to the database, for sending SQL statements and getting results.
- Create JDBC Statement object containing SQL query.
- Execute statement which returns the result set. ResultSet contains the tuples of DB table as a result of SQL query.
- Process the result set.
- Close the connection.
More Related questions...
Comments & Discussions