Re: Getting the week of a date

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Getting the week of a date
Дата
Msg-id 200402161303.12330.dev@archonet.com
обсуждение исходный текст
Ответ на Getting the week of a date  ("Kumar" <sgnerd@yahoo.com.sg>)
Список pgsql-sql
On Monday 16 February 2004 12:10, Kumar wrote:
>
> test=# select date_trunc('week',current_date + ('5 month')::INTERVAL);
> ERROR:  TIMESTAMP units 'week' not supported

Try EXTRACT(week FROM ...)

--  Richard Huxton Archonet Ltd


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

Предыдущее
От: Robert Creager
Дата:
Сообщение: Re: Getting the week of a date
Следующее
От: sad
Дата:
Сообщение: Re: Getting the week of a date