| From: | Michael Davis <michael(dot)davis(at)prevuenet(dot)com> | 
|---|---|
| To: | pgsql-sql(at)postgreSQL(dot)org | 
| Subject: | RE: [SQL] Comparing Dates to Current Time | 
| Date: | 1999-03-24 21:18:16 | 
| Message-ID: | 93C04F1F5173D211A27900105AA8FCFC1452D2@lambic.prevuenet.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-sql | 
Try select title from articles where expires > now()::date;
	-----Original Message-----
	From:	Jenny DiBartolomeo [SMTP:jdibartolomeo(at)agency(dot)com]
	Sent:	Wednesday, March 24, 1999 12: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
	------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ing. Roberto Andrade | 1999-03-24 21:31:37 | RE: [SQL] Use of 'default TEXT now()' | 
| Previous Message | Jackson, DeJuan | 1999-03-24 21:14:55 | RE: [SQL] Use of 'default TEXT now()' |