在首页加载时,设置了语句为where 1=1,但是这个条件会将全面数据浏览出来,如何修改语句,在首页加载并且无查询参数条件下,只显示最新的50条数据呢?? 样例语句(求修改): SELECT * FROM table WHERE 1=1 ${if(len(Atxt)==0 && len(Btxt)==0 && len(Ctxt)==0 , "AND ROWNUM <= 50",""} ${if(len(Atxt)> 0 && len(Btxt)==0 && len(Ctxt)==0 , "A = '" + Atxt + " '",""} ${if(len(Atxt)= 0 && len(Btxt)> 0 && len(Ctxt)==0 , "B = '" + Btxt + " '",""} |