如果查询的两个表大小相当,那么用in和exists差别不大。 如果两个表中一个较小,一个是大表,则子查询表大的用exists,子查询表小的用in: 例如:表A(小表),表B(大表) 1: select * from A where cc in (select cc from B) 效率低,用到了A表 Read More
posted @ 2018-04-09 18:10 带刺的小花277 Views(374) Comments(0) Diggs(1) Edit
1.File--setting--Editor-Inspections-Geneal-Duplicated Code 去除 主要是类中出现太多的重复代码,idea自动提示。 Read More
posted @ 2018-04-09 15:35 带刺的小花277 Views(1914) Comments(0) Diggs(0) Edit