Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is JDBC?

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "What is JDBC", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "What is JDBC"!

What is JDBC?

Compared to other database programming environments, JDBC has Java language features, programs developed using JDBC can run across platforms and are not restricted by database vendors.

Why not limit yourself to database vendors?

This is the design of JDBC.

1. SUN provides a "pure" Java API for SQL database access;

At the same time, a driver manager is provided to allow third-party drivers to link to specific databases, so that database vendors can provide their own drivers and insert them into the driver manager.

A simple mechanism is needed to allow third-party drivers to register with the driver manager.

Typical use of JDBC

In the traditional client-server model, the database is typically configured on the server side and the JDBC driver is deployed on the client. When developing to the later three-layer or even higher-level application mode, the client does not directly call the database, but calls the middle layer on the server, and then the middle layer completes the database query operation. The advantage of this three-tier model is that it separates the visual representation (on the client side) from the business logic (middleware layer) and the raw data (in the database). Thus, we can access interlinked databases and interlinked business rules from different clients, such as Java applications, applets, or web forms.

Communication between the client and the middle tier can be accomplished via http (when a web browser is used as the client), rmi (when an application or applet is used), or other mechanisms. JDBC is responsible for Venus communication between the middle tier and the background database.

At this point, I believe that everyone has a deeper understanding of "what JDBC is," so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report