Friday 4 September 2015

What is JDBC? Describe the steps needed to execute a SQL query using JDBC.

We can connect to databases from java using JDBC. It stands for Java DataBase Connectivity. 
Here are the steps: 

1. Register the jdbc driver with the driver manager 
2. Establish jdbc connection 
3. Execute an sql statement 
4. Process the results 
5. Close the connection 

No comments:

Post a Comment