hql中不能写count(1)可以写count(a.id)里面写具体的属性
String hql="select new com.haiyisoft.vo.entity.cc.repo.BusinessStat( r.paramName ,t.paramName , "
+" (select nvl(count(1),0) "
+" from co...
分类:
其他好文 时间:
2014-06-10 14:54:59
阅读次数:
168
1.知识点:可以对照下面的录屏进行阅读
SQL> --组函数类型:avg,count,max,min,sum
SQL> --工资总额
SQL> select sum(sal) from emp;
SQL> --员工人数
SQL> select count(*) from emp;
SQL> --平均工资
SQL> select sum(sal)/count(*) 一, avg(sal) ...
分类:
数据库 时间:
2014-06-10 13:51:45
阅读次数:
362
下列语句部分是Mssql语句,不可以在access中使用。SQL分类:DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE)DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT)DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK...
分类:
数据库 时间:
2014-06-10 12:33:43
阅读次数:
495
--子增长的插入 /*创建表*/ create table teacher ( id int
identity(1,1) primary key not null, name varchar(20) ) select * from
teacher/*关闭自增长*/SET IDE...
分类:
数据库 时间:
2014-06-10 12:21:35
阅读次数:
243
问题:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
分析:
该问题是符合斐波那契数列的,具体...
分类:
其他好文 时间:
2014-06-10 08:19:31
阅读次数:
194
相信把这99条sql搞定,Oracle基本笔试简直就像玩的一样
1. select * from emp;
2. select empno, ename, job from emp;
3. select empno 编号, ename 姓名, job 工作 from emp;
4. select job from emp;
5. select di...
分类:
数据库 时间:
2014-06-10 08:18:19
阅读次数:
188
题目
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
方法
从后往前求解...
分类:
其他好文 时间:
2014-06-10 07:38:21
阅读次数:
171
jquery与zend framework编写的联动选项效果...
分类:
Web程序 时间:
2014-06-10 06:11:26
阅读次数:
287
首先介绍一下Power Designer:它是Sybase公司的CASE工具集,使用它可以方便地对管理信息系统进行分析设计,它几乎包括了数据库设计全过程。利用Power Designer可以制作数据流程图、概念数据模型、物理数据模型,还可以为数据仓库制作结构模型,对团队设计模型进行控制。它可以与许多流行的软件开发工具如PowerBuilder、Delphi、VB等相配合缩短开发时间以及使系统设计更...
分类:
数据库 时间:
2014-06-10 06:07:35
阅读次数:
367