- Hive SQL基础及优化
蓝棠
SQLhivesqlbigdata
SQLSQLSQL基础语法基本含义(与excel对应)数据来源HiveSQL查询语法单表查询语法和使用1,select2,groupby*3,聚合函数4.行转列5,join6,Hive分析/窗口函数7,HiveSQL怎么写7.1*找出5月新用户数>10w的日期**7.2找出7.2号新客,在7.3-7.10仍活跃的用户数*8,开发限制和建议SQL常用函数优秀SQLer的进阶常用函数介绍与应用一、基础
- jquery实现select2插件鼠标点击任意地方时默认选中该输入框内的值
小程小程心想事程
jquery计算机外设前端
jquery实现select2插件鼠标点击任意地方时默认选中该输入框内的值最近发现一个问题,插件select2中的select2可输入可选择的下拉框,在你输入值后鼠标点击别的地方,输入框内的值会被清空,特此记录一下这里的优化,这里修改为鼠标点击任意地方时默认选中该输入框内的值;代码如下://select2输入框鼠标点击任何地方时默认选中该值$(document).on("click",functi
- hive四种常见的join
不想起的昵称
hive大数据hadoophdfshive
1.左连接leftjoinspark-sql>withtest1as(>select1asuser_id,'xiaoming'asname>unionall>select2asuser_id,'xiaolan'asname>unionall>select3asuser_id,'xiaoxin'asname>),>>test2as(>select1asuser_id,19asage>unionall
- MyBatis--08--常用标签
知行合一。。。
Spring基础知识--SSMmybatisjava开发语言
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录1.常用属性2.SQL定义标签2.1select2.2insert2.3update2.4delete2.5resultMap2.6sql3.SQL动态标签3.1if3.2==foreach==3.2.1批量插入表数据3.2.2批量更新表数据3.2.3批量查询表数据3.3choose/when/otherwise3.4wher
- vue TinyMCE编辑器增加字体
九叔儿
1.首先在toolbar.js中加入fontselect2.在index.vue(使用了element-admin)在window.tinymce.init中加入以下代码:font_formats:"Arial=arial,helvetica,sans-serif;CourierNew=couriernew,courier,monospace;AkrutiKndPadmini=Akpdmi-n;宋
- 【JavaEE】_HTML常用标签
_周游
JavaEEjava-eehtmljava
目录1.HTML结构2.HTML常用标签2.1注释标签2.2标题标签:h1~h62.3段落标签:p2.4换行标签:br2.5格式化标签2.6图片标签:img2.7超链接标签:a2.8表格标签2.9列表标签2.10表单标签2.10.1input标签2.10.2下拉菜单标签:select2.10.3多行编辑框标签:textarea2.11无语义标签1.HTML结构HTML用于描述网页骨架,是一个标签化
- [3D Selection]AR/VR/MR虚拟现实环境中的3D场景物体交互方法调研
Bartender_Jill
Graphics图形学笔记3darvr
文章目录前言一、Overview1.13DSelection综述文献1.2相关资源网站1.3部分文章对3DSelection算法的总结二、历年来较经典文章2.12000年-2010年2005IntenSelect2006SmartRay2007BalloonSelection2011-2020年2011SQUAD2015IntentDrivenSelection2018PreciseHead-an
- oracle sql求1-100之间的素数
zz_ll9023
oraclesql数据库
要找出1-100之间的素数,你可以使用以下OracleSQL查询:sqlSELECTnumberFROM(SELECT1ASnumberFROMdualUNIONALLSELECT2ASnumberFROMdualUNIONALLSELECT3ASnumberFROMdualUNIONALLSELECT4ASnumberFROMdualUNIONALLSELECT5ASnumberFROMdual
- 走向DBA之SQL语句(DQL)
国王12
select查看一、作用:获取MySQL中的数据行信息二、单独使用select2.1获取参数信息语法:select@@xxxmysql>select@@port;获取端口号+--------+|@@port|+--------+|3306|+--------+1rowinset(0.00sec)2.2模糊匹配获取参数信息语法:like'%内容%'mysql>showvariableslike'wa
- 2. MySQL 多实例
开源极客行
MySQL数据库linux运维
重点:MySQL的三种安装方式:包安装,二进制安装,源码编译安装。MySQL的基本使用MySQL多实例DDLcreatealterdropDMLinsertupdatedeleteDQLselect2.5)通用二进制格式安装MySQL2.5.1)实战案例:通用二进制格式安装MySQL5.6(手动安装)官网下载二进制格式安装包下载链接:MySQL::DownloadMySQLCommunitySer
- oracle获取某时间段内的年份、月份、日期列表,两个年份之间的所有年份,日期函数
镜头上的背包客
oracle数据库sqlsql数据库oracle
一、oracle查询两个年份之间的所有年份列表SELECT2015+level-1lvFROMDUALCONNECTBYLEVEL<=2020-2015+1结果:201520162017201820192020二、oracle获取某时间段内的年份、月份、日期列表1、获取日期列表:SELECTTO_CHAR(TO_DATE('2019-10-01','yyyy-MM-dd')+ROWNUM-1,'y
- Redis命令行操作
善仁-灿哥
redis数据库redisjava
1.Redis命令的小套路NX:notexistEX:expireM:multi2.数据库的基本操作①切换数据库select[数据库]注意:使用select进行切换,数据库索引从0开始127.0.0.1:6379>select2OK127.0.0.1:6379[2]>select0OK127.0.0.1:6379>②查看数据库长度dbsize数据库长度就是这个数据库中存储了多少条数据127.0.0
- 求POS小票上同时存在A,B两个商品的解法
老骥
原问题https://www.modb.pro/issue/9491有一个tag表:idtag1a,b,c2a,c,d3a如何查询tag里包含a和c的?也就是第一行和第二行withcteas(select1asid,'a,b,c'astagunionallselect2asid,'a,c,d'astagunionallselect3asid,'a,d,e'astagunionallselect4a
- python之替换文本内容
老歌老听老掉牙
python办公自动化python
1、test.txt内容ActiveSheet.Pictures.Insert(_"\\Jz\2023\12\12.29-0.15\10K\1-2-3.jpg").Select2、复制后再替换字符importre#假设你的文本保存在一个名为text的变量中text="""...ActiveSheet.Pictures.Insert(_"\\Jz\2023\12\12.29-0.15\10K\1-
- mysql if语句的使用
Eric_Zeng
/*写在储存过程里或者函数里头*/BEGINset@tag_count=4;select@tag_count:=count(distincttag)fromtemp.original_cashwherestdate='20180405';if@tag_count=6or@tag_count=9or@tag_count=5+9THENbeginselect1;end;elseselect2;endi
- javaScript常见事件的使用、原理及案例演示【超详篇】
是小言
javascript开发语言
文章目录JavaScript中什么是事件?事件的基本原理javaScript中事件的使用1,窗口事件1.1、onblur1.2、onfocus1.3、onload1.4、onresize2,表单事件2.1、onchange2.2、**oninput**2.3、oninvalid2.4、onselect2.5、onsubmit3,键盘事件3.1、onkeydown3.2、onkeyup3.3、onk
- jsp中的二级联动
那些年欠下的技术债
Thisisatest!请选择脚本语言高级语言其他语言//下拉列表数据请选择//获取一级菜单长度varselect1_len=document.frm.s1.options.length;varselect2=newArray(select1_len);//把一级菜单都设为数组for(i=0;i多级关联菜单0||!v){if(dsy.Exists(str)){ar=dsy.Items[str];f
- Select2 4.0.5 API
密码110
详细属性参考官方API,https://github.com/select2/select2/releases/tag/4.0.5注:4.0.5版本API与3.x版本有差异,有些属性已废弃,以下列出常用属性及其参考值:1、API属性类型默认值描述dataArrayofobjectsNull数据集合,基础数据格式{id:"",text:"",selected:true/选中/,disabled:tr
- 爬虫(2)-Flask后端 -接口
nightelves11
flask后端爬虫python
爬虫(2)-Flask后端-接口存完数据之后,就是通过Python代码将其显示在页面上,并被前端调用,加载到前端界面。这边采用flask框架。大体形式可以参照廖雪峰Python中web框架里的flask。代码中先是查询了数据库的内容deffind(select1,select2):db,cursor=cur()data=show(cursor,1000,select1,select2)db.com
- javaScript中的常用事件
べ微熏の斜陽べ
javascript开发语言ecmascript
文章目录javaScript中什么是事件?基本原理javaScript中的时间使用1,窗口事件1.1、onblur1.2、onfocus1.3、onload1.4、onresize2,表单事件2.1、onchange2.2、**oninput**2.3、oninvalid2.4、onselect2.5、onsubmit3,键盘事件3.1、onkeydown3.2、onkeyup3.3、onkeyp
- 下拉框搜索 select2 的使用[转载]
willeny
原文地址:https://m.imooc.com/article/14472使用场景是:一个下拉框有太多值需要搜索做匹配加载文件html代码请选择医院selected>{$list.hospital_name}js代码$(function(){$('#searchHospital').select2({placeholder:"Selectastate"});});
- sql打卡记录二 基础查询与排序
llwvip
sqlsql数据库database
目录一、SELECT语句基础1、从表中选取数据SELECT2、从表中选取符合条件的数据WHERE3、相关法则二、算数运算符和加减运算符1、算数运算符2、比较运算符3、常用法则三、逻辑运算符1、NOT运算符2、AND运算符、OR运算符四、对表进行聚合查询1、聚合函数2、常用法则五、对表进行分组1、GROUPBY六、为聚合结果指定条件1、用HAVING得到特定分组2、HAVING特点七、对查询结果进行
- DQL查询数据(超重点)以及distinct(去重)
清宸~
MySQL数据库sql
DQL(DataQueryLanguage:数据查询语言)1.所有查询操作都用SELECT2.无论是简单的查询还是复杂的查询它都能做3.数据库中最核心的语言,最重要的语句4.使用频率最高的语句语法:SELECT字段1,字段2,……FROM表有时候列名字不易理解,我们可以起别名AS,SELECT字段名as别名FROM表名as别名--查询全部学生select字段FROM表SELECT*FROMstud
- mysql生成年月日区间
GodKeyNet
mysql数据库
selecta.datefrom(selectcurdate()-INTERVAL(a.a+(10*b.a)+(100*c.a)+(1000*d.a))DAYasdatefrom(select0asaunionallselect1unionallselect2unionallselect3unionallselect4unionallselect5unionallselect6unionallse
- 【SQL】根据年份,查询每个月的数据量
chuk.
Mysqlsql数据库mysql
根据年份,查询每个月的数据量一种WITHMonthsAS(SELECT1ASMonthUNIONALLSELECT2UNIONALLSELECT3UNIONALLSELECT4UNIONALLSELECT5UNIONALLSELECT6UNIONALLSELECT7UNIONALLSELECT8UNIONALLSELECT9UNIONALLSELECT10UNIONALLSELECT11UNION
- SQLturning:查询连续值范围优化
ZzzkiYoumi
SQLTurning数据库服务器运维oracledba数据库开发
很多场景下,部分数据是连续,按照业务要求需要求出这些连续的数据,那么如何实现和优化呢?1、构造实验数据:CREATEORREPLACEVIEWv(proj_id,proj_start,proj_end)ASSELECT1,date'2005-01-01',date'2005-01-02'FROMdualUNIONALLSELECT2,date'2005-01-02',date'2005-01-03
- row_number() over (partition by..order by...)分组排序
低头望明月
数据库sqloracle函数
例:select1a,2b,3cfromdualunionallselect2a,6b,7cfromdualunionallselect1a,3b,4cfromdualunionallselect2a,5b,6cfromdualunionallselect1a,4b,5cfromdual结果:1、使用row_number()over(partitionby..orderby...)可以对这些数据进
- oracle常用sql语句
阿星_
数据库[Oraclemssqlmysqlsqlite]工作随记
--首先,以超级管理员的身份登录oracle sqlplussys/bjsxtassysdba --然后,解除对scott用户的锁 alteruserscottaccountunlock; --那么这个用户名就能使用了。 --(默认全局数据库名orcl) 1、selectename,sal*12fromemp;--计算年薪 2、select2*3fromdual; -
- IO多路转接之select
Dominiczz
Linux服务器linux
IO多路转接之select1.IO多路转接(复用)2.select2.1函数原型2.2细节描述3.并发处理3.1处理流程3.2通信代码原文链接1.IO多路转接(复用)IO多路转接也称为IO多路复用,它是一种网络通信的手段(机制),通过这种方式可以同时监测多个文件描述符并且这个过程是阻塞的,一旦检测到有文件描述符就绪(可以读数据或者可以写数据)程序的阻塞就会被解除,之后就可以基于这些(一个或多个)就
- C#-关于LINQ及其常用语句
一介学徒
C#基础与进阶windowsc#开发语言
目录一、Linq介绍二、Linq语句1、select2、Where3、Order4、OfType5、Join、GroupJoin6、Reverse7、GroupBy8、Any、All9、Skip10、Take、Count11、Sum、Average、Max、Min12、Concat、Distinct13、ElementAt14、First/Single、Last15、ToDictionary、To
- github中多个平台共存
jackyrong
github
在个人电脑上,如何分别链接比如oschina,github等库呢,一般教程之列的,默认
ssh链接一个托管的而已,下面讲解如何放两个文件
1) 设置用户名和邮件地址
$ git config --global user.name "xx"
$ git config --global user.email "
[email protected]"
- ip地址与整数的相互转换(javascript)
alxw4616
JavaScript
//IP转成整型
function ip2int(ip){
var num = 0;
ip = ip.split(".");
num = Number(ip[0]) * 256 * 256 * 256 + Number(ip[1]) * 256 * 256 + Number(ip[2]) * 256 + Number(ip[3]);
n
- 读书笔记-jquey+数据库+css
chengxuyuancsdn
htmljqueryoracle
1、grouping ,group by rollup, GROUP BY GROUPING SETS区别
2、$("#totalTable tbody>tr td:nth-child(" + i + ")").css({"width":tdWidth, "margin":"0px", &q
- javaSE javaEE javaME == API下载
Array_06
java
oracle下载各种API文档:
http://www.oracle.com/technetwork/java/embedded/javame/embed-me/documentation/javame-embedded-apis-2181154.html
JavaSE文档:
http://docs.oracle.com/javase/8/docs/api/
JavaEE文档:
ht
- shiro入门学习
cugfy
javaWeb框架
声明本文只适合初学者,本人也是刚接触而已,经过一段时间的研究小有收获,特来分享下希望和大家互相交流学习。
首先配置我们的web.xml代码如下,固定格式,记死就成
<filter>
<filter-name>shiroFilter</filter-name>
&nbs
- Array添加删除方法
357029540
js
刚才做项目前台删除数组的固定下标值时,删除得不是很完整,所以在网上查了下,发现一个不错的方法,也提供给需要的同学。
//给数组添加删除
Array.prototype.del = function(n){
- navigation bar 更改颜色
张亚雄
IO
今天郁闷了一下午,就因为objective-c默认语言是英文,我写的中文全是一些乱七八糟的样子,到不是乱码,但是,前两个自字是粗体,后两个字正常体,这可郁闷死我了,问了问大牛,人家告诉我说更改一下字体就好啦,比如改成黑体,哇塞,茅塞顿开。
翻书看,发现,书上有介绍怎么更改表格中文字字体的,代码如下
 
- unicode转换成中文
adminjun
unicode编码转换
在Java程序中总会出现\u6b22\u8fce\u63d0\u4ea4\u5fae\u535a\u641c\u7d22\u4f7f\u7528\u53cd\u9988\uff0c\u8bf7\u76f4\u63a5这个的字符,这是unicode编码,使用时有时候不会自动转换成中文就需要自己转换了使用下面的方法转换一下即可。
/**
* unicode 转换成 中文
- 一站式 Java Web 框架 firefly
aijuans
Java Web
Firefly是一个高性能一站式Web框架。 涵盖了web开发的主要技术栈。 包含Template engine、IOC、MVC framework、HTTP Server、Common tools、Log、Json parser等模块。
firefly-2.0_07修复了模版压缩对javascript单行注释的影响,并新增了自定义错误页面功能。
更新日志:
增加自定义系统错误页面功能
- 设计模式——单例模式
ayaoxinchao
设计模式
定义
Java中单例模式定义:“一个类有且仅有一个实例,并且自行实例化向整个系统提供。”
分析
从定义中可以看出单例的要点有三个:一是某个类只能有一个实例;二是必须自行创建这个实例;三是必须自行向系统提供这个实例。
&nb
- Javascript 多浏览器兼容性问题及解决方案
BigBird2012
JavaScript
不论是网站应用还是学习js,大家很注重ie与firefox等浏览器的兼容性问题,毕竟这两中浏览器是占了绝大多数。
一、document.formName.item(”itemName”) 问题
问题说明:IE下,可以使用 document.formName.item(”itemName”) 或 document.formName.elements ["elementName&quo
- JUnit-4.11使用报java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing错误
bijian1013
junit4.11单元测试
下载了最新的JUnit版本,是4.11,结果尝试使用发现总是报java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing这样的错误,上网查了一下,一般的解决方案是,换一个低一点的版本就好了。还有人说,是缺少hamcrest的包。去官网看了一下,如下发现:
- [Zookeeper学习笔记之二]Zookeeper部署脚本
bit1129
zookeeper
Zookeeper伪分布式安装脚本(此脚本在一台机器上创建Zookeeper三个进程,即创建具有三个节点的Zookeeper集群。这个脚本和zookeeper的tar包放在同一个目录下,脚本中指定的名字是zookeeper的3.4.6版本,需要根据实际情况修改):
#!/bin/bash
#!!!Change the name!!!
#The zookeepe
- 【Spark八十】Spark RDD API二
bit1129
spark
coGroup
package spark.examples.rddapi
import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.SparkContext._
object CoGroupTest_05 {
def main(args: Array[String]) {
v
- Linux中编译apache服务器modules文件夹缺少模块(.so)的问题
ronin47
modules
在modules目录中只有httpd.exp,那些so文件呢?
我尝试在fedora core 3中安装apache 2. 当我解压了apache 2.0.54后使用configure工具并且加入了 --enable-so 或者 --enable-modules=so (两个我都试过了)
去make并且make install了。我希望在/apache2/modules/目录里有各种模块,
- Java基础-克隆
BrokenDreams
java基础
Java中怎么拷贝一个对象呢?可以通过调用这个对象类型的构造器构造一个新对象,然后将要拷贝对象的属性设置到新对象里面。Java中也有另一种不通过构造器来拷贝对象的方式,这种方式称为
克隆。
Java提供了java.lang.
- 读《研磨设计模式》-代码笔记-适配器模式-Adapter
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
package design.pattern;
/*
* 适配器模式解决的主要问题是,现有的方法接口与客户要求的方法接口不一致
* 可以这样想,我们要写这样一个类(Adapter):
* 1.这个类要符合客户的要求 ---> 那显然要
- HDR图像PS教程集锦&心得
cherishLC
PS
HDR是指高动态范围的图像,主要原理为提高图像的局部对比度。
软件有photomatix和nik hdr efex。
一、教程
叶明在知乎上的回答:
http://www.zhihu.com/question/27418267/answer/37317792
大意是修完后直方图最好是等值直方图,方法是HDR软件调一遍,再结合不透明度和蒙版细调。
二、心得
1、去除阴影部分的
- maven-3.3.3 mvn archetype 列表
crabdave
ArcheType
maven-3.3.3 mvn archetype 列表
可以参考最新的:http://repo1.maven.org/maven2/archetype-catalog.xml
[INFO] Scanning for projects...
[INFO]
- linux shell 中文件编码查看及转换方法
daizj
shell中文乱码vim文件编码
一、查看文件编码。
在打开文件的时候输入:set fileencoding
即可显示文件编码格式。
二、文件编码转换
1、在Vim中直接进行转换文件编码,比如将一个文件转换成utf-8格式
&
- MySQL--binlog日志恢复数据
dcj3sjt126com
binlog
恢复数据的重要命令如下 mysql> flush logs; 默认的日志是mysql-bin.000001,现在刷新了重新开启一个就多了一个mysql-bin.000002
- 数据库中数据表数据迁移方法
dcj3sjt126com
sql
刚开始想想好像挺麻烦的,后来找到一种方法了,就SQL中的 INSERT 语句,不过内容是现从另外的表中查出来的,其实就是 MySQL中INSERT INTO SELECT的使用
下面看看如何使用
语法:MySQL中INSERT INTO SELECT的使用
1. 语法介绍
有三张表a、b、c,现在需要从表b
- Java反转字符串
dyy_gusi
java反转字符串
前几天看见一篇文章,说使用Java能用几种方式反转一个字符串。首先要明白什么叫反转字符串,就是将一个字符串到过来啦,比如"倒过来念的是小狗"反转过来就是”狗小是的念来过倒“。接下来就把自己能想到的所有方式记录下来了。
1、第一个念头就是直接使用String类的反转方法,对不起,这样是不行的,因为Stri
- UI设计中我们为什么需要设计动效
gcq511120594
UIlinux
随着国际大品牌苹果和谷歌的引领,最近越来越多的国内公司开始关注动效设计了,越来越多的团队已经意识到动效在产品用户体验中的重要性了,更多的UI设计师们也开始投身动效设计领域。
但是说到底,我们到底为什么需要动效设计?或者说我们到底需要什么样的动效?做动效设计也有段时间了,于是尝试用一些案例,从产品本身出发来说说我所思考的动效设计。
一、加强体验舒适度
嗯,就是让用户更加爽更加爽的用
- JBOSS服务部署端口冲突问题
HogwartsRow
java应用服务器jbossserverEJB3
服务端口冲突问题的解决方法,一般修改如下三个文件中的部分端口就可以了。
1、jboss5/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml
2、./server/default/deploy/jbossweb.sar/server.xml
3、.
- 第三章 Redis/SSDB+Twemproxy安装与使用
jinnianshilongnian
ssdbreidstwemproxy
目前对于互联网公司不使用Redis的很少,Redis不仅仅可以作为key-value缓存,而且提供了丰富的数据结果如set、list、map等,可以实现很多复杂的功能;但是Redis本身主要用作内存缓存,不适合做持久化存储,因此目前有如SSDB、ARDB等,还有如京东的JIMDB,它们都支持Redis协议,可以支持Redis客户端直接访问;而这些持久化存储大多数使用了如LevelDB、RocksD
- ZooKeeper原理及使用
liyonghui160com
ZooKeeper是Hadoop Ecosystem中非常重要的组件,它的主要功能是为分布式系统提供一致性协调(Coordination)服务,与之对应的Google的类似服务叫Chubby。今天这篇文章分为三个部分来介绍ZooKeeper,第一部分介绍ZooKeeper的基本原理,第二部分介绍ZooKeeper
- 程序员解决问题的60个策略
pda158
框架工作单元测试
根本的指导方针
1. 首先写代码的时候最好不要有缺陷。最好的修复方法就是让 bug 胎死腹中。
良好的单元测试
强制数据库约束
使用输入验证框架
避免未实现的“else”条件
在应用到主程序之前知道如何在孤立的情况下使用
日志
2. print 语句。往往额外输出个一两行将有助于隔离问题。
3. 切换至详细的日志记录。详细的日
- Create the Google Play Account
sillycat
Google
Create the Google Play Account
Having a Google account, pay 25$, then you get your google developer account.
References:
http://developer.android.com/distribute/googleplay/start.html
https://p
- JSP三大指令
vikingwei
jsp
JSP三大指令
一个jsp页面中,可以有0~N个指令的定义!
1. page --> 最复杂:<%@page language="java" info="xxx"...%>
* pageEncoding和contentType:
> pageEncoding:它