pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedselect based on date range
2+ messages / 2 participants
[nested] [flat]
* select based on date range
@ 2000-08-15 00:25 Erik B. Flitman <erikf@syncc.com>
2000-08-15 00:55 ` Re: select based on date range Ken Kinder <ken@kenkinder.com>
0 siblings, 1 reply; 2+ messages in thread
From: Erik B. Flitman @ 2000-08-15 00:25 UTC (permalink / raw)
To: pgsql-admin
Is there a quick way to select based on a date range. For example I want
all records that have a date greater than the current date but go out only
as far as 1 week.
Sync Consulting, LLC
Erik B. Flitman
Vice President
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: select based on date range
2000-08-15 00:25 select based on date range Erik B. Flitman <erikf@syncc.com>
@ 2000-08-15 00:55 ` Ken Kinder <ken@kenkinder.com>
0 siblings, 0 replies; 2+ messages in thread
From: Ken Kinder @ 2000-08-15 00:55 UTC (permalink / raw)
To: Erik B. Flitman <erikf@syncc.com>; +Cc: pgsql-admin
select * from foo where col > datetime 'date literal' and col < datetime
'date literal'
datetime 'value'
casts the string to a datetime variable. You can also use timespans.
--
Ken Kinder
www.kenkinder.com
On Mon, 14 Aug 2000, Erik B. Flitman wrote:
> Is there a quick way to select based on a date range. For example I want
> all records that have a date greater than the current date but go out only
> as far as 1 week.
>
> Sync Consulting, LLC
> Erik B. Flitman
> Vice President
>
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-08-15 00:55 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-08-15 00:25 select based on date range Erik B. Flitman <erikf@syncc.com>
2000-08-15 00:55 ` Ken Kinder <ken@kenkinder.com>
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