摘要: 报错这个的原因是未进行网络访问的授权:AndroidManifest.xml 阅读全文
posted @ 2015-05-24 12:16 lonsine 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 问题:用 android 4.4 写android访问http时,到connection.getResponseCode() 就不被执行,也不报错:但是抛出org.json.JSONException: End of input at character 0 of .异常:连接代码:public s... 阅读全文
posted @ 2015-05-23 18:19 lonsine 阅读(1475) 评论(0) 推荐(0) 编辑
摘要: declare v_rowcount integer; v_rowcount1 integer; v_rowcount2 integer;begin select count(*) into v_rowcount from dual where exists( select * from col w... 阅读全文
posted @ 2014-09-16 09:38 lonsine 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: 在 Delphi 中使用正则表达式, 目前 PerlRegEx 应该是首选, 准备彻底而细致地研究它.官方网站: http://www.regular-expressions.info/delphi.html直接下载: http://www.regular-expressions.info/down... 阅读全文
posted @ 2014-09-14 22:34 lonsine 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 1.http://www.ihref.com/read-16369.html2.从github上下载源码:http://www.cnblogs.com/yelaiju/p/3180986.html3.github的优秀项目:http://www.cnblogs.com/hawkon/p/359370... 阅读全文
posted @ 2014-08-20 20:47 lonsine 阅读(90) 评论(0) 推荐(0) 编辑
摘要: java移位运算符不外乎就这三种:>(带符号右移)和>>>(无符号右移)。1、 左移运算符 左移运算符> num num 指定要移位值value 移动的位数。 右移的规则只记住一点:符号位不变,左边补上符号位2)运算规则: 按二进制形式把所有的数字向右移动对应的位数,低位移出(舍弃),高位的空位补符... 阅读全文
posted @ 2014-08-14 22:13 lonsine 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 主要参考:1.http://blog.csdn.net/android_tutor/article/details/57722852.http://www.cnblogs.com/bravestarrhu/archive/2012/05/02/2479461.html 阅读全文
posted @ 2014-08-04 20:32 lonsine 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 由于存在不是整周,和起始日期,终止日期星期不定的复杂情况,所以简单的sql语句貌似无法实现.写个函数,从起始日期开始,判断不是周末的话就加1天,只到终止日期.create or replace function day_count(t1 date,t2 date) return numberis n number:=0;tt date;begin tt:=t1; while tt<=t2 loop n:=n+(case when to_char(tt,'day') in('星期六','星期日') then 0 else 1 end); tt 阅读全文
posted @ 2014-02-13 16:49 lonsine 阅读(988) 评论(0) 推荐(0) 编辑
摘要: --例如 with a as ( select 'a' A, 'b' B ,5 C ,2 D from dual union all select 'w', 'b', 1, 3 from dual union all select 'x' ,'x' ,3 ,1 from dual ) select decode(grouping(A),1,'合計',A) A ,B,sum(C) C,SUM(D) D from a group by rollup ((a,b))create table 阅读全文
posted @ 2013-12-10 14:14 lonsine 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 需求说明: 需要查询出某个客户某一年那些天是有连续办理过业务实现SQL如下: 创建表: create table test_num(tyear number, tdate date); 测试数据:insert into test_numselect 2014,trunc(sysdate)-1 from dual union all select 2014,trunc(sysdate)-002 from dual union all select 2014,trunc(sysdate)-003 from dual union all select 2014,trunc(sysdate)-004 阅读全文
posted @ 2013-10-29 09:35 lonsine 阅读(4808) 评论(1) 推荐(1) 编辑