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
Post a Comment