| От | Anton de Wet |
|---|---|
| Тема | Re: Dates in postgres |
| Дата | |
| Msg-id | Pine.LNX.4.33.0202251800070.19276-100000@localhost.localdomain обсуждение исходный текст |
| Ответ на | Dates in postgres (Rob <rob@obsidian.co.za>) |
| Список | pgsql-novice |
On Mon, 25 Feb 2002, Rob wrote: > I can get today's date in postgres using the current_date function, but I > need to get the date one month ago from the current date. Is there any > way to do this? select now() - interval '1 month'; -- ---------------------------------------------------------------------- "I really didn't foresee the Internet. But then, neither did the computer industry. Not that that tells us very much of course - the computer industry didn't even foresee that the century was going to end." - Douglas Adams
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера