博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[JAVA学习笔记-74]了解JDBC
阅读量:4098 次
发布时间:2019-05-25

本文共 956 字,大约阅读时间需要 3 分钟。

JDBC provides methods to query and update data in a database.

dynamically loading the correct Java packages and registerting them with the JDBC Driver Manager,
the JDBC Driver Manager is used as a connection factory for creating connections.

JDBC connections support creating and executing statements.Statements can be update(CREATE,INSERT,UPDATE,DELETE) and query(SELECT).

Statement – the statement is sent to the database server each and every time.

PreparedStatement – the statement is cached and then the execution path is pre-determined on the database server allowing it to be executed multiple times in an efficient manner.

CallableStatement – used for executing stored procedures on the database.

Update statements return an update count that indicates how many rows were affected in the database.

Query statements return a JDBC row result set.

JDBC connections are often managed via a connection pool rather than obtained directly from the driver.

转载地址:http://tphii.baihongyu.com/

你可能感兴趣的文章
被 Zoom 逼疯的歪果仁,造出了视频会议机器人,同事已笑疯丨开源
查看>>
上古语言从入门到精通:COBOL 教程登上 GitHub 热榜
查看>>
再见,Eclipse...
查看>>
超全汇总!B 站上有哪些值得学习的 AI 课程...
查看>>
如果你还不了解 RTC,那我强烈建议你看看这个!
查看>>
神器面世:让你快速在 iOS 设备上安装 Windows、Linux 等操作系统!
查看>>
沙雕程序员在无聊的时候,都搞出了哪些好玩的小玩意...
查看>>
太赞了!GitHub 标星 2.4k+,《可解释机器学习》中文版正式开放!
查看>>
程序员用 AI 修复百年前的老北京视频后,火了!
查看>>
漫话:为什么你下载小电影的时候进度总是卡在 99% 就不动了?
查看>>
我去!原来大神都是这样玩转「多线程与高并发」的...
查看>>
当你无聊时,可以玩玩 GitHub 上这个开源项目...
查看>>
B 站爆红的数学视频,竟是用这个 Python 开源项目做的!
查看>>
安利 10 个让你爽到爆的 IDEA 必备插件!
查看>>
自学编程的八大误区!克服它!
查看>>
GitHub 上的一个开源项目,可快速生成一款属于自己的手写字体!
查看>>
早知道这些免费 API,我就可以不用到处爬数据了!
查看>>
Java各种集合类的合并(数组、List、Set、Map)
查看>>
JS中各种数组遍历方式的性能对比
查看>>
Mysql复制表以及复制数据库
查看>>