Quantcast
Channel: SQL Server SELECT LAST N Rows - Stack Overflow
Viewing all articles
Browse latest Browse all 24

Answer by Hakan Fıstık for SQL Server SELECT LAST N Rows

$
0
0

In a very general way and to support SQL server here is

SELECT TOP(N) *
FROM tbl_name
ORDER BY tbl_id DESC

and for the performance, it is not bad (less than one second for more than 10,000 records On Server machine)


Viewing all articles
Browse latest Browse all 24

Trending Articles



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