Paging Through Query Result Sets
От | Don Parris |
---|---|
Тема | Paging Through Query Result Sets |
Дата | |
Msg-id | CAJ-7yonkNqPuuO3t5xMaUTpkgLR2Zw+P3M7h2kSB-BHj+whHXA@mail.gmail.com обсуждение исходный текст |
Ответы |
Re: Paging Through Query Result Sets
Re: Paging Through Query Result Sets |
Список | psycopg |
Hi all,
I would like to be able to page through a result set when there is more than one screenful of data. Is there a good example of paging through a query result set in Bash - something like implementing the less command? Even if I can't scroll backwards through the result set, at least being able to control the paging forward would be good.Active State used to have some neat snippets I was able to take advantage of in the past (for working with text files), and I was looking at this:
http://code.activestate.com/recipes/137270-use-generators-for-fetching-large-db-record-sets/
Thoughts?
--
D.C. Parris, FMP, Linux+, ESL Certificate
Minister, Security/FM Coordinator, Free Software Advocate
D.C. Parris, FMP, Linux+, ESL Certificate
Minister, Security/FM Coordinator, Free Software Advocate
GPG Key ID: F5E179BE
В списке psycopg по дате отправления: