2012年3月9日
摘要: 很多时候我们在遇到map遍历时,我们首先会想到的是用for循环一个一个的遍历,但有没有想过用迭代器Iterator呢?下面是一个用Iterator遍历map的例子for(Iterator iter = map.entrySet().iterator(); iter.hasNext();){ Map.Entry entry = (Map.Entry) iter.next(); String key = (String) entry.getKey(); String value = (String ) entry.getValue();}可能大家觉得这没什么,还得申请Iterator,并不值... 阅读全文
posted @ 2012-03-09 13:32 it_code 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 要求查询出tab中3月1-10号的每天1-10点数据select * from tab where (to_number(to_char(date,'hh'),'99') between 1 and 10)and date between to_date('2012-3-1','yyyy-mm-dd') and to_date('2012-3-10') 阅读全文
posted @ 2012-03-09 13:19 it_code 阅读(121) 评论(0) 推荐(0) 编辑