![]() ![]() ![]() The number of translation layers is very less i.e.Further, these drivers can be downloaded dynamically. No special software is required either on the client or the server side.The major benefit of using a Type 4 JDBC driver is that they are completely written in Java to achieve platform independence and eliminate deployment administration issues.Since ODBC drivers are entirely written in C language, therefore, they are platform dependent and cause the portability issues. ODBC API uses ODBC Drivers to interact with the databases. String name = resObj.getString("test_name ") įloat salary = resObj.getFloat("test_salary ") īefore JDBC, ODBC API was used to communicate with the databases. ResultSet resObj = stmtObj.executeQuery("SELECT test_id, test_name, test_salary FROM testTable") Statement stmtObj = connObj.createStatement() The following simple code fragment gives an example of these three steps,Įxample.java Connection connObj = DriverManager.getConnection("jdbc:myDriver:testDb", "myLoginId", "myPassword") Retrieving and processing the results received from the database in answer to the SQL query.Sending queries and update statements to the database.JDBC lets a developer manage the below three important programming activities, i.e.: 1: Java Database Connectivity (JDBC) Architecture ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |