优化group by查询: explain SELECT actor.first_name, actor.last_name, COUNT( ) from sakila.film_actor INNER JOIN sakila.actor USING(actor_id) GROUP BY film_ ...
分类:
数据库 时间:
2020-02-07 16:56:51
阅读次数:
76
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 whic ...
分类:
其他好文 时间:
2020-02-07 10:41:25
阅读次数:
56
1、盲注的概念 盲注就是在sql 注入过程中,sql 语句执行的选择后,选择的数据不能回显到前端页面。例如:sqlilabs-less-5 盲注分三类:基于布尔的盲注、基于时间的盲注、基于报错的盲注 2、常用盲注函数 Left(databse(),1)>'s' Explain:database()显 ...
分类:
数据库 时间:
2020-02-04 20:42:14
阅读次数:
112
一、前言 JMeter中的Logic Controller用于为Test Plan中的节点添加逻辑控制器。JMeter中的Logic Controller 分为两类:一类用来控制Test Plan 执行过程中节点的逻辑执行顺序,如: Loop Controller. If Controller等;另 ...
分类:
其他好文 时间:
2020-02-02 19:45:05
阅读次数:
90
The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standard bowling- ...
分类:
其他好文 时间:
2020-02-02 19:42:09
阅读次数:
74
一、前言 Test Plan 的配置元件中有一些和 HTTP属性相关的元件:HTTP Cache Manager、HTTP AuthorizationManager、HTTP Cookie Manager、HTTP Header Manager、HTTP Request Defaults等,这些元件 ...
分类:
Web程序 时间:
2020-02-02 17:44:30
阅读次数:
92
使用explain关键字获取sql执行性能 语法如下: explain select * from table explain 中的列expain出来的信息有10列,分别是id,select_type,table、type,partitions,possible_keys,key,key_len,r ...
分类:
数据库 时间:
2020-02-02 16:11:22
阅读次数:
120
很多时候对于不同的平台需要编写不同的代码,可选的方式 build tag 参考格式 // +build 对于平台处理的例子 // +build linux,386 darwin,!cgo 文件后缀 参考格式 _$GOOS.go _$GOOS_$GOARCH.go 参考例子 mypkg_freebsd ...
分类:
其他好文 时间:
2020-02-02 14:16:25
阅读次数:
70
一、执行计划有什么用? 二、主要指标: 1. select_type? SIMPLE:简单的查询(没有union或子查询)? PRIMARY:最外层的查询(有union或子查询)? DERIVED:衍生表查询(FROM语句中的子查询) 2. type? 从优到差排序如下: const:只匹配一行,根 ...
分类:
数据库 时间:
2020-01-31 22:29:34
阅读次数:
89
验证二叉搜索树。题目即是题意。二叉搜索树的特性是对于每个node而言,他的左子树上任意节点都比他自身小,右子树上任意节点都比他自身大。这个题也是有两种做法,迭代和递归。时间空间复杂度都是O(n)。例子, Example 1: 2 / \ 1 3 Input: [2,1,3] Output: true ...
分类:
其他好文 时间:
2020-01-31 10:43:30
阅读次数:
66