1.基本概念 开窗函数分为两个部分分别是 1.聚合,排名,偏移,分布函数 。 2.开窗分区,排序,框架。 下面举个例子 sum(val) 就是集合函数 over() 就是开窗 PARTITION BY empid 就是开窗分区(分组) ORDER BY ordermonth 开窗排序 ROWS BE ...
分类:
数据库 时间:
2018-08-10 21:19:42
阅读次数:
169
oracle11g建立好了以后执行以下语句,可防止空表无法备份的问题(之前已经建立的表需要下面的方法进行处理)altersystemsetdeferred_segment_creation=false执行以下sql,将结果执行,在进行备份即可select‘altertable‘||table_name||‘allocateextent;‘fromuser_tableswherenum_rows=0
分类:
数据库 时间:
2018-08-09 17:20:09
阅读次数:
149
第一步:引入pageHelper的jar包。 第二步:需要在SqlMapConfig.xml中配置插件。 第三步:在查询的sql语句执行之前,添加一行代码: 第一个参数是page,要显示第几页。 第二个参数是rows,没页显示的记录数。 第四步:取查询结果的总数量。 创建一个PageInfo类的对象 ...
分类:
其他好文 时间:
2018-08-09 15:43:16
阅读次数:
114
1.datatable dt=new datatable(); 2.dt 内容改变 dt.columns.add("col1"); dt.columns.add("col2"); dt.columns.add("col3"); dt.rows.add( array1); dt.rows.add( a ...
分类:
其他好文 时间:
2018-08-09 10:09:41
阅读次数:
1507
注:框架标签不可以放到<body>,一般为了代码的可读性,会到<head>和<body>之间。 例: <frameset rows="10%,*"> <frame src="1.html" name="top" /> <frameset cols="30%,*"> <frame src="2.htm ...
分类:
其他好文 时间:
2018-08-07 23:58:57
阅读次数:
323
数据预处理 在使用 TensorFlow 作为后端的时候,在 Keras 中,CNN 的输入是一个4维数组(也被称作4维张量),它的各维度尺寸为 (nb_samples, rows, columns, channels)。其中 nb_samples 表示图像(或者样本)的总数,rows, colum ...
分类:
其他好文 时间:
2018-08-07 20:46:59
阅读次数:
2346
先来一段 自行体会 1 # 2 #模拟通过binlog进行数据恢复 3 # 4 5 #开启新的二进制日志 便于记录 6 mysql> flush logs; 7 Query OK, 0 rows affected (0.02 sec) 8 9 mysql> show master status; 1 ...
分类:
数据库 时间:
2018-08-04 20:36:49
阅读次数:
188
Description Rain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 <= R <= 50, 1 <= C <= 50). While good for the grass, the ...
分类:
其他好文 时间:
2018-08-03 19:55:31
阅读次数:
172
function deletePRE() { var rows = $('#dg').datagrid('getSelections'); var ids = []; var other_ids = []; $.each(rows, function(index, item){ var id=ite... ...
分类:
其他好文 时间:
2018-08-03 16:33:50
阅读次数:
162
通过information_schema信息修改rename database的目的 mysql 没有rename database 命令,只能变相修改表到目标库里的表来实现: 拼接reanme tables的执行语句 改进:希望拼接语句直接导出到指定文件,再导入批量执行 ...
分类:
数据库 时间:
2018-08-02 13:58:20
阅读次数:
230