Can we select top rows from variable value In sql server 2008?.like this.
declare @rows int=2;
select top @rows * from table_name;
-- instead of select top 2 * from table_name;
Can we select top rows from variable value In sql server 2008?.like this.
declare @rows int=2;
select top @rows * from table_name;
-- instead of select top 2 * from table_name;