1、Where 子句中:where 表之间的连接必须写在其他Where 条件之前,那些可以过滤掉最大数量记录的条件必须写在Where 子句的末尾.HAVING 最后。2、用EXISTS 替代IN、用NOT EXISTS 替代NOT IN。3、避免在索引列上使用计算4、避免在索引列上使用IS NULL ...
分类:
数据库 时间:
2020-03-26 19:21:08
阅读次数:
91
1、decode 使用decode判断字符串是否一样 DECODE(value,if1,then1,if2,then2,if3,then3,...,else) decode(条件,值1,返回值1,值2,返回值2,...值n,返回值n,缺省值) 某些场景可以代替case when 2、listagg ...
分类:
数据库 时间:
2020-03-26 13:37:20
阅读次数:
123
简单查询 全表扫描:指针从第一条记录开始,一次逐行处理,直到最后一行记录结束。 横向选择(where)+纵向投影(select)=结果集 多表连接 交叉连接(笛卡尔积) 非等值连接 等值连接 内连接 外连接(左外、右外、全连接) 自连接 自然连接(隐含连接条件,自动匹配连接字段) 集合运算 误操作需 ...
分类:
数据库 时间:
2020-03-26 12:09:49
阅读次数:
85
http://www.51testing.com/html/64/n-1838164.html ...
分类:
数据库 时间:
2020-03-25 21:41:41
阅读次数:
91
Here share the latest software version 193 free download link for Renault CAN CLIP diagnostic interface. Free download Renault CAN CLIP V193: https:// ...
分类:
其他好文 时间:
2020-03-25 19:07:38
阅读次数:
78
前言 现在云计算和容器化越来越流行,大家开口闭口都是阿里云、腾讯云,或者 Kubernetes、容器、镜像、Docker 这样的字眼。 越来越多的中小公司选择把自己的服务进行拆分,微服务化,然后部署在各大云服务平台上。 但是云服务虽然好,开发环境总还是要在公司内部,为了方便维护硬件,虚拟化方案就显得 ...
分类:
系统相关 时间:
2020-03-25 10:41:10
阅读次数:
151
1 from django.db import models 2 3 # Create your models here. 4 class User(models.Model): 5 name=models.CharField(max_length=11) 6 pwd=models.CharFiel ...
分类:
其他好文 时间:
2020-03-25 01:34:30
阅读次数:
68
Frequently Asked Questions — Circus 0.15.0 documentation https://circus.readthedocs.io/en/latest/faq/#whycircussockets Here is a list of frequently as ...
分类:
其他好文 时间:
2020-03-25 01:32:25
阅读次数:
78
Access denied for user ''@'localhost' to database 'mysql'问题 MySQL : Access denied for user ''@'localhost' to database 'mysql'问题看点。原创starmyao 最后发布于2018 ...
分类:
数据库 时间:
2020-03-24 23:03:46
阅读次数:
78
文件夹数据库处理逻辑 public class DbFolder { JSONObject root; public DbFolder() { this.root = new JSONObject(); this.root.put("f_id", ""); this.root.put("f_name ...
分类:
Web程序 时间:
2020-03-24 19:01:40
阅读次数:
71