mysql - select statement return a section of result -


ex:

 @productname varchar(50),     @pagestart int,     @pageend int,     @result varchar(max)      set @result = select * products productname '%@productname%'       return select @result section between @pagestrat  @pageend 

this how imagine ,if correct? or there 1 statement can result

declare @productname varchar(50),     @pagestart int,     @pageend int,     @result varchar(max)  select  *  (select *,row_number() on (order id) row products  productname @productname) a.row between @pagestart , @pageend 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -