Quantcast
Viewing latest article 3
Browse Latest Browse All 24

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

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 latest article 3
Browse Latest Browse All 24

Trending Articles