From: msi77 <msi77@yandex.ru>
To: pgsql-sql@postgresql.org,Shruthi A <shruthi.iisc@gmail.com>
Subject: Re: How to get the previous date?
Date: Thu, 15 Oct 2009 00:41:24 +0400
Message-ID: <29871255552884@webmail102.yandex.ru> (raw)
In-Reply-To: <6caee9520910140240u13daba93ua20637642727776e@mail.gmail.com>
References: <6caee9520910140240u13daba93ua20637642727776e@mail.gmail.com>
Try this:
select cast(mydate as date) -1
> Hi,
> I'm using Enterprise DB PostgresPlus version 8.3.
> Is there is a simple function or command like previous_date(mydate) which when passed a particular date, simply returns the previous date? I tried
> mydate - 1
> but this doesnt work.
> Thanks,
> Shruthi
Почта со встроенным плеером находится здесь: http://mail.yandex.ru/promo/new/wysiwyg
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: msi77@yandex.ru, shruthi.iisc@gmail.com
Subject: Re: How to get the previous date?
In-Reply-To: <29871255552884@webmail102.yandex.ru>
* 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