RE: [SQL] Comparing Dates to Current Time

From: "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com>
To: Jenny DiBartolomeo <jdibartolomeo(at)agency(dot)com>, pgsql-sql(at)postgreSQL(dot)org
Subject: RE: [SQL] Comparing Dates to Current Time
Date: 1999-03-24 21:12:19
Message-ID: D05EF808F2DFD211AE4A00105AA1B5D2026916@cpsmail.cpsgroup.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

try:
SELECT title
FROM articles
WHERE expires > now()::datetime::date
-DEJ

> -----Original Message-----
> From: Jenny DiBartolomeo [mailto:jdibartolomeo(at)agency(dot)com]
> Sent: Wednesday, March 24, 1999 1:09 PM
> To: pgsql-sql(at)postgreSQL(dot)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(at)agency(dot)com(dot)
>
> -Jenny
>
> ------------------------------
> Jennifer DiBartolomeo
> jdibartolomeo(at)agency(dot)com
> ------------------------------
>

Browse pgsql-sql by date

  From Date Subject
Next Message Jackson, DeJuan 1999-03-24 21:14:55 RE: [SQL] Use of 'default TEXT now()'
Previous Message Ing. Roberto Andrade 1999-03-24 20:19:59 Use of 'default TEXT now()'