SHARE
TWEET

Untitled

a guest Jan 20th, 2013 14 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT CODE_VER FROM MASTERTEST WHERE DATE>= DATE_SUB(CURDATE(), INTERVAL 90 DAY) ORDER BY DATE DESC;
  2.        
  3. @result=SELECT CODE_VER FROM MASTERTEST WHERE DATE>= DATE_SUB(CURDATE(), INTERVAL 90 DAY) ORDER BY DATE DESC;
  4.  
  5. @result.page(params[:page]).per(10)
  6.        
  7. <% paginate %> # to render the value page by page
RAW Paste Data
Top