Re: Date: the day before yesterday.

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: Date: the day before yesterday.
Дата
Msg-id 200108142013.f7EKDDD18907@jupiter.us.greatbridge.com
обсуждение исходный текст
Ответ на Date: the day before yesterday.  ("Jason" <jzhu@dental.temple.edu>)
Список pgsql-sql
Jason wrote:
> I am trying to retrieve records generated in the passed two days and
> encountered difficulties in dealing with the date in Oracle.
> Here is the query I try to form:
>
> select * from Table where InputDate>=[the day before yesterday]
>
> I tried "sysdate-2", didn't work.
> Any suggestions?
   Try harder.

> Thanks!
   You're welcome.


Jan

PS: What about ('now'::date - 2) ?


--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Deadlocks? What happened to MVCC?
Следующее
От: Randall Skelton
Дата:
Сообщение: psql connection being reset during function?