数据库 oracle9i语句:
String sql="select t.supplier_no as supplier_no,t.supplier_name as supplier_name from ps_supplier t where t.development_date is not null and t.development_date<=sysdate order by t.supplier_name";
return jdbcTemplate.queryForList(sql);
我在项目中调用这句sql
1.点按钮去查询 sql只有200条记录
2.我在出现的页面上刷新就有1380条记录
3.我把排序删了(order by t.supplier_name) 结果集就对了
现在sql语句中的排序不能删除,此问题怎么解决
String sql="select t.supplier_no as supplier_no,t.supplier_name as supplier_name from ps_supplier t where t.development_date is not null and t.development_date<=sysdate order by t.supplier_name";
return jdbcTemplate.queryForList(sql);
我在项目中调用这句sql
1.点按钮去查询 sql只有200条记录
2.我在出现的页面上刷新就有1380条记录
3.我把排序删了(order by t.supplier_name) 结果集就对了
现在sql语句中的排序不能删除,此问题怎么解决
是你的查询窗口的页显示数据条数的问题吧 还是sysdate 的原因 估计有人在插入数据