码迷,mamicode.com
首页 >  
搜索关键字:union all    ( 25526个结果
[LC] 438. Find All Anagrams in a String
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:其他好文   时间:2019-10-11 12:49:09    阅读次数:72
mysql数据库用户权限设置
格式:grant 权限列表 on 数据库名.表名 to '用户名'@'来源地址' identified by '密码'; * 权限列表:用于列出授权的各种数据库操作,通过逗号进行分割,如:select,insert,update等,all表示所有权限,可以执行任意操作。* 库名.表名:用于指定授权操 ...
分类:数据库   时间:2019-10-11 12:25:45    阅读次数:121
[LC] 15. 3Sum
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s ...
分类:其他好文   时间:2019-10-11 10:31:45    阅读次数:91
*args和**kwargs用法
def func(*args): # just use "*" to collect all remaining arguments into a tuple # 这里的*是关键符号,args可以替换为其他命名 # 更一般的函数定义方式是def fun(*args,**kwargs),可以在许多Py... ...
分类:其他好文   时间:2019-10-10 22:25:31    阅读次数:99
Es查询结果集默认是10000,更新设置
Es查询结果集默认是10000,结果集大小是int,最大为21亿左右 PUT _all/_settings?preserve_existing=true { "index.max_result_window" : "2000000000" } 将所有的索引结果窗口集改为20亿,这个是已经存在的索引 ...
分类:其他好文   时间:2019-10-10 20:03:39    阅读次数:781
dmp文件导入
--导出导入 impdp TEST/1234 full=y directory=DPDATA3 dumpfile=ALL_DATA_0925_NEW.dmp remap_tablespace = item_space:TEST_DATA remap_schema = itemuser:test ex ...
分类:其他好文   时间:2019-10-10 16:07:24    阅读次数:150
SQL操作符的优化
操作符优化 IN 操作符 用IN写出来的SQL的优点是比较容易写及清晰易懂,这比较适合现代软件开发的风格。 但是用IN的SQL性能总是比较低的,从ORACLE执行的步骤来分析用IN的SQL与不用IN的SQL有以下区别: ORACLE试图将其转换成多个表的连接,如果转换不成功则先执行IN里面的子查询, ...
分类:数据库   时间:2019-10-10 15:31:43    阅读次数:100
优化小技巧
1、group by 分组用于统计,而不用于筛选数据 比如:统计平均分、最高分适合,但用于筛选重复数据则不适合 以及用索引来避免临时表和文件排序 2、以A,B标连接为例,主要查询A表的列 那么group by , order by的列尽量相同,而且列应该显示声明为A列,如A.XX 3、union优化 ...
分类:其他好文   时间:2019-10-10 15:30:40    阅读次数:65
prometheus 监控 hadoop
1. run JMX exporter as a java agent with all the four daemons. For this I have added EXTRA_JAVA_OPTS in hadoop-env.sh and yarn-env.sh : [root@cloud01 ...
分类:其他好文   时间:2019-10-10 14:10:59    阅读次数:808
Shell的 for 循环小例子
上例子 执行结果: f1 f2 f3 但是,请注意:如果是在makefile 中写,要写成这个样子: 如果 @echo $$i; 后面没有反斜线,则会出现: /bin/sh: -c:行3: 语法错误: 未预期的文件结尾 这是因为如果是如下: all: for i in f1 f2 f3; do\ @ ...
分类:系统相关   时间:2019-10-09 17:23:53    阅读次数:94
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!