Re: Fwd: Silly question about numbering of rows?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Fwd: Silly question about numbering of rows?
Дата
Msg-id Pine.LNX.4.30.0103132042370.2274-100000@peter.localdomain
обсуждение исходный текст
Ответ на Fwd: Silly question about numbering of rows?  (Ken Corey <ken.corey@atomic-interactive.com>)
Список pgsql-sql
Ken Corey writes:

> It sounds easiest to me to just punt and number the rows as they are returned
> in my calling application...

The rows are automatically numbered.  In libpq, you'd use
PQgetvalue(result, rownumber, fieldnumber).  Other interfaces have similar
functions.  If the interface has a "fetch"-like approach, it seems trivial
to keep a counter.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: "david morgan"
Дата:
Сообщение: Re: error joining 2 views containing GROUP BYs
Следующее
От: Christopher Sawtell
Дата:
Сообщение: Re: my pgsql error?