Lesson: JDBC Introduction

Lesson: JDBC Introduction

官网地址
我的码云
JDBC manage three programming activities:

  1. Connect to a data source, like a database.
  2. Send queries and update statements to the database.
  3. Retrieve and process the results received from the database in answer to your query.
JDBC Product Components

JDBC includes four components:

  1. The JDBC API is divided into two packages: java.sql and javax.sql.
  2. JDBC Driver Manager
  3. JDBC Test Suite
  4. JDBC-ODBC Bridge

主要使用前两个, 测试后面学习 junit5 的时候留意一下

JDBC Architecture
Two-tier and Three-tier Processing Models

In the two-tier model, a java application talks directly to the data source.
In the three-tier model, commands are sent to a “middle tier” of services.

A Relational Database Overview

In simplest terms, a relational database is one that presents information in tables with rows and columns.

Integrity Rules
  1. duplicate rows are not allowed
  2. column values must not be repeating groups or arrays.
  3. a null value is missing.
  4. primary key cannot be null.
Common SQL Commands

DML data manipulation language

  • select
  • insert
  • delete
  • update
    DDL data definition language
  • create table
  • drop table
  • alter table
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值