随笔分类 -  数据库

摘要:使用druid 数据池对连接密码加密 1、使用maven导入druid的jar包 <!-- https://mvnrepository.com/artifact/com.alibaba/druid --> <dependency> <groupId>com.alibaba</groupId> <ar 阅读全文
posted @ 2017-08-11 14:58 正好 阅读(776) 评论(0) 推荐(0)
摘要:一、一些常见的SQL实践 (1)负向条件查询不能使用索引 select * from order where status!=0 and stauts!=1 select * from order where status!=0 and stauts!=1 not in/not exists都不是好 阅读全文
posted @ 2017-07-26 15:08 正好 阅读(171) 评论(0) 推荐(0)