2013年11月1日
摘要: public list getEmpList(String hql, int page, int pageSize){ page --当前页,pageSize--每页要显示的条数 Session session = this.getHibernateTemplate().getSessionFact... 阅读全文
posted @ 2013-11-01 11:07 明天521 阅读(219) 评论(0) 推荐(0) 编辑
  2013年10月30日
摘要: 1.修改表字段的类型修改语句 alter table 表名 modify (某列 新类型);2.group by 的用法A B1 abc1 bcd1 asdfgselect A,B from table group by A你说这样查出来是什么结果,A B abc 1 bcd asdfg右边3条如何变成一条,所以需要用到聚合函数,比如select A,count(B) 数量 from table group by A这样的结果就是A 数量1 3group by 有一个原则,就是 select 后面的所有列中,没有使用聚合函数的列,必须出现在 group by 后面3.数据库中字符串截取 ora 阅读全文
posted @ 2013-10-30 11:29 明天521 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 方法一:执行代码块create table student2(id varchar2(20) primary key,name varchar2(20),birthdate date, age varchar2(10),phone varchar2(20),adress varchar2(32));commit;declare i NUMBER;beginfor i in 1..500000 loopinsert into student2(id,name,birthdate,age,phone,adress) values (i,'张三'||i,sysdate+1,' 阅读全文
posted @ 2013-10-30 11:26 明天521 阅读(1531) 评论(0) 推荐(0) 编辑
摘要: 方法一:encodingFilterorg.springframework.web.filter.CharacterEncodingFilter encodingUTF-8encodingFilter/*在web.xml中加上以上代码,首先form 的提交方式是post 阅读全文
posted @ 2013-10-30 10:36 明天521 阅读(110) 评论(0) 推荐(0) 编辑
  2013年6月8日
摘要: 1.java中父类引用指向子类如果父类和子类中有相同的方法,执行子类的方法Graphics gc= new Graphics(); Graphics图形 gc.calArea(); gc = new Rect(); Rect矩形 gc.calArea(); gc = new Circle(); Ci... 阅读全文
posted @ 2013-06-08 17:11 明天521 阅读(109) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/sc-xx/archive/2011/12/03/2275084.html关于游标的文件。create or replaceprocedure hourInDayaascursor unitAll is select unit_id from tbl_unit_info;--所有单位cursor typeAll is select id from tbl_en_type; --所有分类--cursor hournum is select EN_VAL_ORG,EN_VAL_STD,EN_COST,UNIT_ID,SUPER_ID,INDS_ID,E 阅读全文
posted @ 2013-06-08 15:06 明天521 阅读(193) 评论(0) 推荐(0) 编辑
  2013年6月7日
摘要: create or replace procedure typeHinDascursor typeall is select id,name from tbl_en_type; --查询出来所有分类cursor hournum is select EN_VAL_ORG,EN_VAL_STD,EN_COST,UNIT_ID,SUPER_ID,INDS_ID,EN_TYPE_ID,STAND_COE from tbl_unit_en_type_hour where to_date(sysdate-1,'dd-mon-yyyy') = to_date(en_date,'dd- 阅读全文
posted @ 2013-06-07 11:42 明天521 阅读(221) 评论(0) 推荐(0) 编辑
  2013年6月6日
摘要: create or replace procedure testone --testone是存储过程名称 ascursor test is select id,name from tbl_unit_type; -- test是游标名称typename varchar2(32); --定义一个用于接收游标值得参数begin for typename in test loop --循环游标 begin dbms_output.put_line(typename.id); --获取id dbms_output.put_line(typename.name); --获取name end; end lo 阅读全文
posted @ 2013-06-06 10:55 明天521 阅读(146) 评论(0) 推荐(0) 编辑
  2013年6月4日
摘要: 1.java面向对象我的理解是:一个系统可以看做一个对象,例如能耗监测系统,我需要监测能耗时,我只要用这个系统就可以了,他内部怎么实现的我不用去管。2.举个例子:例如一个人是一个对象,可以用属性描述一下这个人(年龄,性别,省份证号等等),他可以做什么呢,我们可以设置成方法。我让这个人去关灯,他可以有... 阅读全文
posted @ 2013-06-04 13:16 明天521 阅读(256) 评论(0) 推荐(0) 编辑
  2013年5月21日
摘要: 准备:FusionCharts.js 文件,FCF_Column3D.swf(柱形)flash:var dataXml = ""+""+""+""+""+""+""+""+""+""+""+""+" ";var myChart2 = new FusionCharts("/FlashTest/FCF_... 阅读全文
posted @ 2013-05-21 15:12 明天521 阅读(249) 评论(0) 推荐(0) 编辑