sql分页

sql分页

   iSql= "select * from (select a.*,rownum rn from (select procid,procname,actid,actname,applyuser,bussstate,lastuser,proclevel,starttime,allhours,processno,istimeout,etimeout,laststatetime,endtime,formid,ismonitor,lastusername from view_relagisundoassigns "
   +"where username='"
     + userId + "') a where rownum<="+(pageno*10)+") where rn>"+(pageno-1)*10;

你可能感兴趣的:(sql分页)