| От | Doug McNaught |
|---|---|
| Тема | Re: Selecting a specific row |
| Дата | |
| Msg-id | 87657ysfho.fsf@asmodeus.mcnaught.org обсуждение исходный текст |
| Ответ на | Selecting a specific row ("Cason, Kenny" <kenny.cason@boeing.com>) |
| Список | pgsql-hackers |
"Cason, Kenny" <kenny.cason@boeing.com> writes: > Is there an easy way to select, say, the 15th row in a table? I can't > use a sequence number because rows will sometimes be deleted resulting > in the 15th row now being a different row. I need to be able to select > the 15th row regardless of whether it is the same 15th row as the last > select. You can use LIMIT and OFFSET in your SELECT for this, but bear in mind that rows are not stored in any guaranteed order, so use ORDER BY if you need to. -Doug -- Let us cross over the river, and rest under the shade of the trees. --T. J. Jackson, 1863
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера