Re: How to get the previous date?

Поиск
Список
Период
Сортировка
От msi77
Тема Re: How to get the previous date?
Дата
Msg-id 29871255552884@webmail102.yandex.ru
обсуждение исходный текст
Ответ на How to get the previous date?  (Shruthi A <shruthi.iisc@gmail.com>)
Список pgsql-sql
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
returnsthe previous date? I tried 
 
> mydate - 1 
> but this doesnt work. 
> Thanks, 
> Shruthi 

Почта со встроенным плеером находится здесь: http://mail.yandex.ru/promo/new/wysiwyg   


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Oliveiros C,"
Дата:
Сообщение: How to order varchar data by word
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: How to order varchar data by word