Re: Get the last record alone from the select statement.

Поиск
Список
Период
Сортировка
От A.Bhuvaneswaran
Тема Re: Get the last record alone from the select statement.
Дата
Msg-id Pine.LNX.4.44.0307251521500.2337-100000@Bhuvan.bksys.co.in
обсуждение исходный текст
Ответ на Get the last record alone from the select statement.  (HK <harikrishnan@midascomm.com>)
Ответы Re: Get the last record alone from the select statement.  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-novice
> Hi all,
>   I have a doubt in limit clause. With limit and offset i can get the
> first few records from the select statement. Suppose i want to get the
> last record alone from the select, how can i achieve it.

=> select your_fields from your_table where your_condition order by
oid desc limit 1;

regards,
bhuvaneswaran


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

Предыдущее
От: Dag Gullberg
Дата:
Сообщение: Re: question about images
Следующее
От: papapep
Дата:
Сообщение: Re: Questions about Exists-Not exists clause