摘要: 封装类Attribute: public class Attribute { private int id; private String name; private int age; public int getId() { return id; } public void setId(int id) { ... 阅读全文
posted @ 2018-07-29 16:04 小猫钓鱼吃鱼 阅读(671) 评论(0) 推荐(0) 编辑
摘要: 1 阿里巴巴的fastjson import com.alibaba.fastjson.JSON; 使用的时候 JSON.toJSON(list); 2 Gson 解析json数据 import com.google.gson.Gson; Gson gson=new Gson(); gson.toJ 阅读全文
posted @ 2018-07-29 16:03 小猫钓鱼吃鱼 阅读(1427) 评论(0) 推荐(0) 编辑
摘要: --top not in方式 select top 条数 * from tablename where Id not in (select top 条数*页数 Id from tablename) --ROW_NUMBER() OVER()方式 select * from ( select *, ROW_NUMBER() OVER(Order by Id ) AS ... 阅读全文
posted @ 2018-07-29 15:40 小猫钓鱼吃鱼 阅读(135) 评论(0) 推荐(0) 编辑