RE: [SQL] timespan arithmetic

Поиск
Список
Период
Сортировка
От David Rose
Тема RE: [SQL] timespan arithmetic
Дата
Msg-id 199907270551.WAA24650@not.rd.wdi.disney.com
обсуждение исходный текст
Ответ на RE: [SQL] timespan arithmetic  ("Jackson, DeJuan" <djackson@cpsgroup.com>)
Список pgsql-sql
Jackson, DeJuan writes:
> I'm not certain this will work, but
> try:
>     SELECT * FROM table 
>       WHERE loaded_time::datetime >= now()::datetime - '1
> days'::timespan
>       ORDER BY loaded_time DESC;

Excellent!  That did the trick.  Many thanks!

(I feel a little stupid for not thinking of trying 'datetime' by
myself--I was running into a dead end with 'reltime'.  Oh well.
Thanks!)

David



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

Предыдущее
От: "Dan Wilson"
Дата:
Сообщение: Re: [GENERAL] escaping wildcard chars
Следующее
От: wieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: [SQL] Good Optimization