当前位置:网站首页>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 :
边栏推荐
- js触屏小游戏源码冰雪之旅
- 本周大新闻|FCC曝光Pico 4 VR一体机,雷朋母公司建立智能眼镜实验室
- 【芝麻街一家】& Bert Bart RoBERTa
- Recursive call to print every bit of an integer
- 全网最简约的sklearn环境配置教程(百分百成功)
- 为什么说DAO是未来的公司形式
- Foundation 32: page element positioning method XPath --- axis positioning method
- unity客户端读取文本配置
- Network solutions for Alibaba cloud services
- 51单片机外设篇:蜂鸣器
猜你喜欢

Wechat applet ordering system graduation design of applet completion works (2) applet function

Redis学习笔记

table表格展开内部行切换效果

360度拖拽全景图插件tpanorama.js

Wechat reservation of the completed works of the applet graduation project (6) opening defense ppt

Source code of short video live broadcast system

Cool canvas animation shock wave JS special effect

Leetcode · 83 biweekly race · 6129. Number of all 0 subarrays · mathematics

为什么要使用MQ消息中间件?这几个问题必须拿下!

How to connect tdengine with idea database tool?
随机推荐
图解LeetCode——1184. 公交站间的距离(难度:简单)
Anti shake and throttling
Table table expansion internal row switching effect
[Sesame Street family] & Bert Bart Roberta
Wechat applet ordering system graduation design of applet completion works (8) graduation design thesis template
Additional: in the lower division / county (data sheet)
Robot jumping problem
Wechat Reservation Reservation of applet completion works applet graduation project (8) graduation project thesis template
Sina Weibo client (4) - set navigation bar theme
附加:下半部分sql语句 区/县(数据表)
51 MCU peripherals: Motor
艺术 NFT 的发展之路
Talk about your transformation test development process
【sklearn】sklearn.preprocessing.LabelEncoder
防抖与节流
The hole of scroll view in uniapp
优炫数据库对数据的加密是如何做的?
Additional: SQL statement area / county in the lower half (data table)
Nuscenes dataset 3D mot demo, end-to-end target detection and tracking, joint detection and tracking framework
Wechat reservation applet graduation project (7) mid term inspection report of applet completion works









