2013年11月4日
摘要: oracel数据库对查询语句的要求似乎要严格一些,要先“小于”,再“大于”例:新建表 table students字段 stuid,sname,age,sexcreate table students (stuid number,sname varchar2(20),age number,sex varchar2(20));基本查询语句 select * from students查询第6到10行的信息select * from ( select s.*,rownum rn from students s where rownum 5看懂这条sql语句,分页的核心也就基本上掌握了priva.. 阅读全文
posted @ 2013-11-04 15:29 矿D泉水 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 服务端比较好处理:直接返回一个String类型return Base64.encode(rs.getBytes("BLOB字段名"));其中,rs为resultSet,接收查询语句的结果客户端:byte[] b = Base64.decode(ru,Base64.DEFAULT);Bitmap bitmap = BitMapUtil.getBitmapFromByte(b);if(bitmap!=null) { setBigBitmap(bitmap); }其中,ru为服务端返回的字符串BitMapUtil.java:public class BitMapUtil { /* 阅读全文
posted @ 2013-11-04 14:55 矿D泉水 阅读(602) 评论(0) 推荐(0) 编辑