pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson, DeJuan <djackson@cpsgroup.com>
To: Jenny DiBartolomeo <jdibartolomeo@agency.com>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Comparing Dates to Current Time
Date: Wed, 24 Mar 1999 15:12:19 -0600
Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D2026916@cpsmail.cpsgroup.com> (raw)

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
> ------------------------------
> 



view thread (4+ messages)  latest in thread

Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D2026916@cpsmail.cpsgroup.com>
Permalink:  ../D05EF808F2DFD211AE4A00105AA1B5D2026916@cpsmail.cpsgroup.com/
Also on:    postgresql.org/message-id/D05EF808F2DFD211AE4A00105AA1B5D2026916@cpsmail.cpsgroup.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: djackson@cpsgroup.com, jdibartolomeo@agency.com
  Subject: Re: [SQL] Comparing Dates to Current Time
  In-Reply-To: <D05EF808F2DFD211AE4A00105AA1B5D2026916@cpsmail.cpsgroup.com>
  References: <D05EF808F2DFD211AE4A00105AA1B5D2026916@cpsmail.cpsgroup.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox