Limit rows

Поиск
Список
Период
Сортировка
От Mark Jewiss
Тема Limit rows
Дата
Msg-id Pine.BSO.4.10.9909291613580.5608-100000@office.knowledge.com
обсуждение исходный текст
Ответы Re: [SQL] Limit rows  (Oleg Bartunov <oleg@sai.msu.su>)
Re: [SQL] Limit rows  (Stuart Rison <rison@biochemistry.ucl.ac.uk>)
Re: [SQL] Limit rows  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-sql
Hello,

I'm still thinking about ways to extract specific rows of data from a
table, whilst ignoring others. i.e. I want to see rows 3-7 inclusive from
a table.

Assume that I don't have a numerical identifier - I do, but I can't use
that as rows from this table may be deleted at some point, thereby
knocking the id row out of sequence.

Basically I want to be able to do something like this:

select * from table ignore 10 limit 5;

I can't use cursors, which are ideal for this I know.

Is there such a thing in SQL or pgsql specifically? If not I'll have to
write something....

Regards,

Mark.
-- 
Mark Jewiss
Knowledge Matters Limited
http://www.knowledge.com





В списке pgsql-sql по дате отправления:

Предыдущее
От: Mark Jewiss
Дата:
Сообщение: Limit rows
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: [SQL] Limit rows