Re: newbie question for return date

Поиск
Список
Период
Сортировка
От Lee Harr
Тема Re: newbie question for return date
Дата
Msg-id apkm43$8j$1@news.hub.org
обсуждение исходный текст
Список pgsql-general
In article <xEgv9.2668$h_4.374526@news20.bellglobal.com>, tviardot wrote:
> Hi guys, here a newbies question.
> I've made a table with some action and date.
> How may i query the most recent date. (I'd like to return only the record
> which have the most recent date ).
> Tx
>
>

How about:

SELECT * FROM t ORDER BY d DESC LIMIT 1;


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: VACUUM FULL not working with persistent connections in
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Formatting query output