Between(Interval of two dates) in Postgres

Started by Amin Schoeibover 22 years ago2 messagesgeneral
Jump to latest
#1Amin Schoeib
aschoeib@4tek.de

Hi,
can somebody tell me
How I can use the Oracle between function in Postgres?
Like this:
Select name from test
Where date_f between '31.01.2000'
And '31.01.2003'

Thanxx

Schoeib

4Tek Gesellschaft für angewandte Informationstechnologien mbH
Schoeib Amin
Tel. +49 (0) 69 697688-132
Fax. +49 (0) 69 697688-111
http://www.4tek.de

#2Pavel Stehule
pavel.stehule@gmail.com
In reply to: Amin Schoeib (#1)
Re: Between(Interval of two dates) in Postgres

Hello

set DateStyle TO German ;
SET
testdb011=> select current_date between '31.01.2000' and '31.01.2004';
?column?
----------
t

regards
Pavel

On Fri, 12 Sep 2003, Amin Schoeib wrote:

Show quoted text

Hi,
can somebody tell me
How I can use the Oracle between function in Postgres?
Like this:
Select name from test
Where date_f between '31.01.2000'
And '31.01.2003'

Thanxx

Schoeib

4Tek Gesellschaft f�r angewandte Informationstechnologien mbH
Schoeib Amin
Tel. +49 (0) 69 697688-132
Fax. +49 (0) 69 697688-111
http://www.4tek.de