Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

need help on a sql select statement return rows.

$
0
0

I have 2 millions rows and i want to do a select statement to return from 1000 to 2000.

how would i write something like this?

i tried this command but it didn't work

select * FROM [dbo].[LocalRollA] limit 1000, 2000

I can do

select top 2000

but that will only return top 2000. i need it a way to return back with the row i need.? anyone know of a command to do that?

thanks




Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>