The driver that recognizes a certain sub-protocol will be used to establish a database Connection. The JDBC API provides the following interfaces and classes −ĭriverManager: This is mainly used to manage a list of database drivers. It is similar to the Open Database Connectivity (ODBC) provided by Microsoft.įor a better understanding of working of JDBC, let’s dive deeper into the topic and understand the architecture that lies behind Java Database Connectivity. With this, you can update, save, fetch and delete the data from the databases. JDBC API can be used to access tabular data stored in any relational database. This mainly involves opening a connection, creating a SQL Database, executing SQL queries and then arriving at the output. This API lets you encode the access request statements, in Structured Query Language (SQL ). JDBC is one of the standard Java API for database-independent connectivity between the Java programming language and a wide range of databases. In this article, I will tell you how to connect to a database and execute queries using JDBC.īelow topics are covered in this article: It helps us to connect to various databases through JDBC (Java Database Connectivity). Java, being one of the most prominent programming languages, provides extensive support to databases.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |