需求:现在常用的table 插件很多, 比如 jquey datatables ,不过操作挺 麻烦, 看到推荐的bootstrap 自带的 table,就用到项目来,先看效果: 功能包括常用的, 添加, 删除, 批量删除, 查询, 修改。 添加: Java的框架, 是 springboot 先看下后 ...
分类:
编程语言 时间:
2016-10-27 12:23:21
阅读次数:
446
1、coalesce (c1,c2,c3,c4,...) 类似于nvl但可以从多个表达式中返回第一个不是null的值 2、要在where条件中引用列的别名,可以再嵌套一层查询 select * from ( select salary gz from person) where gz>100 3、l ...
分类:
数据库 时间:
2016-10-15 19:35:10
阅读次数:
203
#!/bin/bashn=`iptables-nvL|grep‘tcpdpt:22‘|egrep-iE‘DROP|REJECT‘|wc-l`if[$n-ge1]theniptables-IINPUT-ptcp--dport22-jACCEPTfi
分类:
其他好文 时间:
2016-10-12 23:20:36
阅读次数:
143
一些常用的函数 NVL(E1, E2)的功能为:如果E1为NULL,则函数返回E2,否则返回E1本身。但此函数有一定局限,所以就有了NVL2函数。 NVL2函数:Oracle/PLSQL中的一个函数,Oracle在NVL函数的功能上扩展,提供了NVL2函数。NVL2(E1, E2, E3)的功能为: ...
分类:
数据库 时间:
2016-10-12 19:00:21
阅读次数:
184
NVL(E1, E2)的功能为:如果E1为NULL,则函数返回E2,否则返回E1本身。 但此函数有一定局限,所以就有了NVL2函数。 NVL2(E1, E2, E3)的功能为:如果E1为NULL,则函数返回E3,若E1不为null,则返回E2。 ...
分类:
其他好文 时间:
2016-09-30 11:43:25
阅读次数:
108
select sno,nvl(to_char(sum(decode(cno,'c001',score))),'-') c001,nvl(to_char(sum(decode(cno,'c002',score))),'-') c002,nvl(to_char(sum(decode(cno,'c003' ...
分类:
其他好文 时间:
2016-09-23 12:42:57
阅读次数:
147
select nvl(sno,'合计') sno,sum(score) score from sc group by rollup(sno); ...
分类:
数据库 时间:
2016-09-23 11:23:04
阅读次数:
314
selectu.fonds_code,u.year_code,u.yj,u.cq,u.dq,nvl(u.yj,0)+nvl(u.cq,0)+nvl(u.dq,0)aswsfilezj,(selectsum(t.yj)astesfrom(selectu.fonds_code,u.year_code,u.yj,u.cq,u.dq,nvl(u.yj,0)+nvl(u.cq,0)+nvl(u.dq,0)aswsfilezj,sum(nvl(u.yj,0))aswswjyjhj,sum(nvl(u.cq,0))asws..
分类:
数据库 时间:
2016-09-08 16:38:30
阅读次数:
274
使用NVL(a,b)通用函数,统计员工年收入,NVL()作用于任何类型,即(number/varchar2/date)通用函数:参数类型可以是number或varchar2或date类型使用NVL2(a,b,c)通用函数,如果a不为NULL,取b值,否则取c值,统计员工年收入使用NULLIF(a,b)通用函数,在类型一致的情况下,如果a与..
分类:
数据库 时间:
2016-09-07 23:16:22
阅读次数:
274
使用NVL(a,b)通用函数,统计员工年收入,NVL()作用于任何类型,即(number/varchar2/date)通用函数:参数类型可以是number或varchar2或date类型selectename,sal*12+NVL(comm,0)fromemp;使用NVL2(a,b,c)通用函数,如果a不为NULL,取b值,否则取c值,统计员工年收入selectename,sa..
分类:
数据库 时间:
2016-09-07 23:14:15
阅读次数:
605