RE: [SQL] Comparing Dates to Current Time

Поиск
Список
Период
Сортировка
От Jackson, DeJuan
Тема RE: [SQL] Comparing Dates to Current Time
Дата
Msg-id D05EF808F2DFD211AE4A00105AA1B5D2026916@cpsmail.cpsgroup.com
обсуждение исходный текст
Список pgsql-sql
try:
 SELECT title
   FROM articles
  WHERE expires > now()::datetime::date
    -DEJ

> -----Original Message-----
> From: Jenny DiBartolomeo [mailto:jdibartolomeo@agency.com]
> Sent: Wednesday, March 24, 1999 1:09 PM
> To: pgsql-sql@postgreSQL.org
> Subject: [SQL] Comparing Dates to Current Time
>
>
> OK... this is probably a trivial one.  In an Oracle query, I
> might do the
> following select statement:
>
>    SELECT title
>
>      FROM articles
>
>     WHERE expires > SYSDATE
>
> How would I do the same thing in Postgres if the column
> "expires" is of the
> data type "DATE"?  I've tried everything and read the man
> pages and can't
> seem to get it working!  Any help would be VERY APPRECIATED!!!
>
> Thanks sooooo much for any help you can give me!!!!  Please
> respond via
> email to jdibartolomeo@agency.com.
>
> -Jenny
>
> ------------------------------
> Jennifer DiBartolomeo
> jdibartolomeo@agency.com
> ------------------------------
>

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

Предыдущее
От: "Ing. Roberto Andrade"
Дата:
Сообщение: Use of 'default TEXT now()'
Следующее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [SQL] Use of 'default TEXT now()'