数据库(Mysql-Oracle)的日常
数据库(Mysql-Oracle)的优化开发日常
牵牛刘先生
曾任职于用友政务软件JAVA大数据工程师,目前任职于河南丰博计量创新研究院云平台部部长,河南丰博水联网研发部智慧水务项目负责人及产品经理,河南丰博智能水联网有限公司技术研发部部长。
展开
-
【JDBC连接池】解决异常:“The last packet sent successfully to the server was 0 milliseconds ago. ”的若干办法
一 异常原因com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. 出现异常的原因是由于数据库回收了连接,而系统的缓冲池不知道,继续使用被回收的连接所致的。二 异常场景(1)大量数据访问情况下,connection连接有可能失效(2)长时间原创 2021-07-26 16:28:02 · 11248 阅读 · 0 评论 -
【SQL生产和优化】left join(左连接) right join (右连接)inner join (等值连接或者叫内连接)full join (全外连接)的区别
一eft join (左连接) right join (右连接)inner join (等值连接或者叫内连接)full join (全外连接)的区别基本定义: left join (左连接):返回包括左表中的所有记录和右表中连接字段相等的记录。 right join (右连接):返回包括右表中的所有记录和左表中连接字段相等的记录。 inner join (等值连接或者叫内连接):只返回两个表中连接字段相等的行。 full join (全外连接):返回左右表中所有的记录和左右表中连接字段相等原创 2020-06-01 14:45:37 · 495 阅读 · 0 评论
分享