Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

How to select the nth row in a SQL database table?

SELECT * FROM (
  SELECT
    ROW_NUMBER() OVER (ORDER BY key ASC) AS rownumber,
    columns
  FROM tablename
) AS foo
WHERE rownumber <= n
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #select #nth #row #SQL #database
ADD COMMENT
Topic
Name
8+5 =