例子1:获取 Employee 表中第二高的薪水(Salary),没有第二高的则返回null select ifnull((select distinct Salary from Employee order by Salary desc limit 1, 1), null) as SecondHi ...
分类:
数据库 时间:
2020-06-11 14:57:32
阅读次数:
65
mysql强制索引和禁止某个索引 1、mysql强制使用索引:force index(索引名或者主键PRI) 例如: select * from table force index(PRI) limit 2;(强制使用主键) select * from table force index(zidua ...
分类:
数据库 时间:
2020-06-10 20:46:27
阅读次数:
98
1 change(limit){ 2 var size = ""; 3 if(limit < 0.1 * 1024){ //小于0.1KB,则转化成B 4 size = limit.toFixed(2) + "B" 5 }else if(limit < 0.1 * 1024 * 1024){ //小 ...
分类:
其他好文 时间:
2020-06-10 11:15:30
阅读次数:
64
Spring Boot 简介 简化Spring应用开发的一个框架; 整个Spring技术栈的一个大整合; J2EE开发的一站式解决方案; 环境准备 环境约束 –jdk1.8:Spring Boot 推荐jdk1.7及以上;java version "1.8.0_112" –maven3.x:mave ...
分类:
编程语言 时间:
2020-06-10 11:00:53
阅读次数:
56
<el-upload :disabled="upLoading" :limit="12" action :http-request="uploadHttp" :show-file-list="false" accept=".png, .jpg, .jpeg"> <div> <i v-if="!upL ...
分类:
Web程序 时间:
2020-06-09 16:42:45
阅读次数:
82
The i-th person has weight people[i], and each boat can carry a maximum weight of limit. Each boat carries at most 2 people at the same time, provided ...
分类:
其他好文 时间:
2020-06-09 09:54:47
阅读次数:
67
1、打开 dnf 配置文件 vi /etc/dnf/dnf.conf 配置如下,主要是关闭gpgcheck=0 : [main] gpgcheck=0 installonly_limit=3 clean_requirements_on_remove=True best=True skip_if_un ...
分类:
其他好文 时间:
2020-06-08 23:57:50
阅读次数:
171
1.处理流程 获取数据源 -> 数据转换 -> 获取结果 2.获取stream对象 (1)从集合或者数组中获取 Collection.stream(),如accounts.stream() Collection.prarallelStream() 获取并行Stream对象 Arrays.stram( ...
分类:
编程语言 时间:
2020-06-08 21:01:11
阅读次数:
101
This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery' MySQL版本不支持 非表中的 limit 解决方案:在加一层查询:一定要多加一层 问题解决的点个赞鸭~ ...
分类:
数据库 时间:
2020-06-08 19:02:05
阅读次数:
63
import math def getNum(limit_num,num): if num%limit_num==0: print(num) else: num=math.ceil(num/limit_num)*limit_num print(num) if __name__ == '__main_ ...
分类:
编程语言 时间:
2020-06-08 11:07:24
阅读次数:
94