![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Jdbc
我要做那最靓的仔
深圳最靓的仔,就是我
展开
-
Mysql引起索引失效的原因总结
Mysql引起索引失效的原因总结 1.对单字段建了索引,where条件多字段。 查询语句: select * from template t where t.logicdb_id = 4 and t.sync_status = 1 2、建立联合索引,where条件单字段。与上面情况正好相反 查询语句: select * from template t where t.sync_statu...原创 2019-12-25 20:20:12 · 929 阅读 · 0 评论 -
MySQL数据库总结
https://blog.csdn.net/weixin_43691058/article/details/103175678#2转载 2019-11-25 21:48:26 · 96 阅读 · 0 评论 -
面试题:有一张表,用索引优化你是怎么优化的,怎么做?
有一张表,用索引优化你是怎么优化的,怎么做? 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中使用 中对字段进行 null 值判断和中对字段进行函数操作和中对字段进行表达式操作和!=或<>操作符和or 来连接条件和使用in 和 not in 使用like,否则引擎将放弃使用索引而进行全表扫...原创 2019-11-21 21:45:07 · 781 阅读 · 1 评论 -
JdbcType类型和Java类型的对应关系
转载 2019-11-18 11:14:26 · 80 阅读 · 0 评论