I\'m creating a paging class and need to pass in two parameters to my MySQL stored procedure for the LIMIT clause.
I\'m passing them in as INTs and trying something
pagination without statements:
create PROCEDURE test( IN first_rec integer, IN rec_count integer ) BEGIN -- return -- SET @rownum=0; SELECT * FROM ( SELECT user.*, @rownum:=@rownum+1 AS rn FROM user ) t WHERE rn>=first_rec and rn