2020年6月5日

摘要: 1.使用fastjson包 2.创建PropertityFilter对象 PropertyFilter filter = new PropertyFilter() { @Override public boolean apply(Object arg0, String filedname, Obje 阅读全文
posted @ 2020-06-05 01:53 java是大坑 阅读(1314) 评论(0) 推荐(0) 编辑

2020年3月20日

摘要: 以下都以查询第二页11-20条记录为例 1.两层子查询嵌套(不排序的话只用嵌套1层) Select * from ( Select rownum rn,t.* from (Select * from user order by salary desc) t where rn <= 20 ) wher 阅读全文
posted @ 2020-03-20 10:05 java是大坑 阅读(788) 评论(0) 推荐(0) 编辑

2020年1月18日

摘要: eclipse在dao层写的模糊查询sql:String sql = "select count(*) from product where pname like '%?%'"; 这样写会导致以下错误 Wrong number of parameters: expected 0, was given 阅读全文
posted @ 2020-01-18 00:18 java是大坑 阅读(3093) 评论(0) 推荐(0) 编辑