当前位置:网站首页>JDBC quick start
JDBC quick start
2022-07-25 08:53:00 【Hua Weiyun】
Catalog
MySQLjar Package download address
JDBC brief introduction
JDBC Concept
①JDBC Is the use of Java A set of language operation relational data records API
② The full name is (Java DataBase Connectivity), It's called Java Database connection .
JDBC The essence
① official (sun company ) A set of rules defined to operate all relational databases , That is to say Interface .
② Each database manufacturer to implement this set of interface , Provide database driver jar package .
③ We can use this interface (JDBC) Programming , The code that actually executes is the driver jar The implementation class in the package
JDBC benefits
① Each database manufacturer uses the same interface ,Java The code does not need to develop different codes for different databases
② The underlying database can be replaced at any time , Access database Java The code is basically unchanged
Relationship diagram :
MySQLjar Package download address
Generally choose this option independent of the platform
① Create a new project
② Then build a module
③ In the new jdbc-demo Create a... In the module lib Catalog , take mysql Of jar Copy and paste the package here
④ Import the jar Package setting scope ( Right click jar package )
⑤ stay src Next, create a class
⑥ Class :
Before the database :
Running results :
After running, the database :
边栏推荐
- Illustration leetcode - 919. Complete binary tree inserter (difficulty: medium)
- 51 MCU internal peripherals: timer and counter
- Foundation 32: page element positioning method XPath --- axis positioning method
- js小游戏源码魔塔闯关下载
- Cool canvas animation shock wave JS special effect
- Es source code reading (I) "suggestions collection"
- [ten thousand words long text] Based on LSM tree thought Net 6.0 C # realize kV database (case version)
- Network solutions for Alibaba cloud services
- Swift initializer and optional chain
- Graduation design of wechat small program ordering system of small program completion works (5) assignment
猜你喜欢

NVIDIA可编程推理加速器TensorRT学习笔记(二)——实操

PL/SQL工具导出sql文件所使用的命令是什么?

Graduation design of wechat small program ordering system of small program completion works (5) assignment

Illustration leetcode - 1184. Distance between bus stops (difficulty: simple)

图解LeetCode——919. 完全二叉树插入器(难度:中等)

The fifth day of MATLAB learning (cycle type)

IDEA下依赖冲突解决方法

聊下自己转型测试开发的历程

BGP border gateway protocol basic knowledge points

The international summit osdi included Taobao system papers for the first time, and end cloud collaborative intelligence was recommended by the keynote speech of the conference
随机推荐
C语言实现二叉平衡树
(self drawn ugly picture) simple understanding tcp/ip three handshakes and four waves
Freemaker template engine
Why use MQ message oriented middleware? These questions must be taken down!
51 single chip microcomputer controls nixie tube display
uni-app
[ten thousand words long text] Based on LSM tree thought Net 6.0 C # realize kV database (case version)
Solving a random number problem
The international summit osdi included Taobao system papers for the first time, and end cloud collaborative intelligence was recommended by the keynote speech of the conference
@Differences between requestparam, @pathparam, @pathvariable and other annotations (use of some annotations)
Leetcode · 83 biweekly race · 6129. Number of all 0 subarrays · mathematics
The hole of scroll view in uniapp
Swift初始化器及可选链
Source code of short video live broadcast system
table表格展开内部行切换效果
Redis学习笔记
IDEA下依赖冲突解决方法
Intel apologized to the winners of Xe HPG treasure hunt game for product delay and announced the appearance of the prize
51单片机内部外设:串口通信
【无标题】









