Re: [GENERAL] the last row in a table

Поиск
Список
Период
Сортировка
От Oleg Broytmann
Тема Re: [GENERAL] the last row in a table
Дата
Msg-id Pine.SOL2.3.96.SK.990310114052.6083H-100000@sun.med.ru
обсуждение исходный текст
Ответ на the last row in a table  (hoelc <hoelc@pd.jaring.my>)
Список pgsql-general
Hi!

On Tue, 9 Mar 1999, hoelc wrote:
> I am developing a database with PostgreSQL in Linux, and using ecpg to write the
> C program to communicate with the database.
> One of my application need to get the data from the last row in a table.
> Is there any function or command that can tract which is the last row of data in
> a table?

   Reorder your query to get the data in the FIRST row and use cursor to fetch
just the row.

> Thank you.
> Regards,
> lch

Oleg.
----
    Oleg Broytmann  National Research Surgery Centre  http://sun.med.ru/~phd/
           Programmers don't die, they just GOSUB without RETURN.


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

Предыдущее
От: Remigiusz Sokolowski
Дата:
Сообщение: Re: [GENERAL] i want to start automaticly postgres when a reboot my server...help please.....
Следующее
От: Gilles Darold
Дата:
Сообщение: Re: [GENERAL] Postgres tutorial examples !