JDBC: ODBC in the Java World

Source: Internet
Author: User
Tags driver manager

Brief Introduction

JDBC has no special features in terms of technology. It is nothing more than an access standard similar to ODBC, which is independent of the database vendor and shared by the world. I even doubt that Sun's design of Java is actually just a language mechanism for database access. I never thought that JDBC would have a huge impact later.

 

Four JDBC types or layers

  1. JDBC-ODBC bridge -- Sun's success. It is also something sun can do and can control development. Sun. JDBC. ODBC package
  2. JDBC + local driver
  3. JDBC + NETWORK SERVICE
  4. JDBC pure driver-sun is required and the database vendor is willing to provide

 

JDBC Structure

  1. JDBC operation class: result set, statement, etc.
  2. JDBC driver MANAGER: registers the driver and obtains the connection class.
  3. Underlying database driver: Provides driver interfaces. The most important thing is the connecton class.

 

Notes for using JDBC

  • JDBC standard version: 4.0 and java6 are currently used together; 3.0 and java5 are used together
  • The versions of JDBC drivers vary by vendor: JDBC standard, JDBC level (type), required JRE, and version special ....
  • JDBC driver registration method: seven methods are available. The simplest thing is class. forname (jdbc_driver_class_name). The most reasonable reason is that the class of jdbc_driver_class_name is new or in drivermanager. Register (new)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.