This question already has an answer here:

Is there any pager, like less, that would allow paging result, but keeping configurable number of lines at the top always?

Example: I run a query that returns many rows from database. Results are single line of headers (column names), "border", and then the records.

Normal pager treat headers as part of the text, which is not optimal, because it's easy to forget name of the column, or their order, when dealing with sufficiently large datasets.

marked as duplicate by Gilles linux Jun 1 '15 at 22:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.