当前位置:网站首页>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 :
边栏推荐
- 51 MCU internal peripherals: serial port communication
- Record the process of two multi terminal troubleshooting
- Redis学习笔记
- @The difference and use of value and configurationproperties
- Swift initializer and optional chain
- @Use of data annotation (instead of get and set methods in entity classes)
- 技术面②Mysql中的索引(index)类型有哪些并简要介绍一下?什么时候需要创建索引?什么时候不需要创建索引?为什么创建索引后查询速度会提高?
- Graduation project of wechat small program ordering system of small program completion works (6) opening defense ppt
- Practice of establishing dynamic programming state transition equation
- This is the worst controller layer code I've ever seen
猜你喜欢

JD cloud and Forrester consulting released a hybrid cloud report that cloud Nativity has become a new engine driving industrial development

This is the worst controller layer code I've ever seen

Tips for improving code sustainability, take connectto method as an example.

Graduation project of wechat small program ordering system of small program completion works (4) opening report

C语言基础

Solve the syntaxerror: unexpected end of JSON input
![[NPM] the](/img/ae/efccefae0323a1f6a425523e01d2ac.png)
[NPM] the "NPM" item cannot be recognized as the name of cmdlets, functions, script files or runnable programs. Please check the spelling of the name. If the path is included, make sure the path is co

Graduation project of wechat small program ordering system of small program completion works (6) opening defense ppt

Network solutions for Alibaba cloud services

YOLOV5环境配置
随机推荐
【npm】 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
How to do the game plug-in?
优炫数据库对数据的加密是如何做的?
图解LeetCode——1184. 公交站间的距离(难度:简单)
Cool canvas animation shock wave JS special effect
Basis 33: XPath acquisition methods of page elements under various browsers
51单片机外设篇:蜂鸣器
QA robot sequencing model
Recursive call to print every bit of an integer
Graduation design of wechat small program ordering system of small program completion works (5) assignment
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
When testing VPN, the IP found by the command line is inconsistent with that of Baidu search
Wechat sports ground reservation applet graduation design of applet completion works (3) background function
[Development Tutorial 9] crazy shell · open source Bluetooth smart health watch - storage
防抖与节流
艺术 NFT 的发展之路
The fifth day of MATLAB learning (cycle type)
Unity HTC vive use
Visual query (sp_helptext) -- quick query of stored procedures containing specified strings (with source code)
@Use of data annotation (instead of get and set methods in entity classes)









