On Tue, 4 Jul 2000 hikmat@laurel.4com.net.lb wrote:
> is there a function that returns the number of weeks since the begining
> of the year or the number of days
>
date_part() or to_char()
BTW. --- what is bad on postgresql docs?
Karel
On Mon, 03 Jul 2000, hikmat@laurel.4com.net.lb wrote:
> is there a function that returns the number of weeks since the begining
> of the year or the number of days
-- Week number of the year
to_char(CURRENT_TIMESTAMP, 'WW');
-- Day number of the year
to_char(CURRENT_TIMESTAMP, 'DDD');
See the documentation at:
http://www.comptechnews.com/~reaster/postgres/functions2976.htm
--
Robert B. Easter
Есть вопросы? Напишите нам!
✖
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера