I. overview of JDBC

1.JDBC:SUN provides a set of operating database specifications

The relationship between 2.JDBC and database: the relation between interface and implementation class

3.JDBC specification: (four core objects)

ADriverManager: for registration drivers

Connection: indicates a link to the database creation

Statement: the object that operates the database executing the SQL statement

Listing ResultSet: a result set or a virtual table

Two, JDBC entry procedures

1. create Java project, boot package

JDBC learning notes - day01 entry procedures


2. create a test database in MySQL and insert data


JDBC learning notes - day01 entry procedures

3. code implementation




JDBC learning notes - day01 entry procedures


4.results of enforcement

JDBC learning notes - day01 entry procedures


相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-11-29
  • 2021-04-28
  • 2021-04-06
猜你喜欢
  • 2022-12-23
  • 2021-09-15
  • 2021-07-11
  • 2021-06-28
  • 2021-12-11
  • 2021-06-20
  • 2022-02-17
相关资源
相似解决方案