function year!

Поиск
Список
Период
Сортировка
От Jerome Knobl
Тема function year!
Дата
Msg-id 35D7F0FA.4C48F4C9@mandanet.ch
обсуждение исходный текст
Ответы Re: [SQL] function year!  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Список pgsql-sql
Hello,

I have a timestamp value, and I'm tring to get only the year, the month
or the day.
I'm using the function now() to put some value inside.

I tried the function year(..) (select year(thedate) from mytable;)

but that function are not define! I'm looking for a simple way to get my
informations?

Thank.

Jérôme Knöbl, MandaNEt, Switzerland




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

Предыдущее
От: Herouth Maoz
Дата:
Сообщение: Re: [SQL] returning the current date in a SQL query
Следующее
От: Jerome Knobl
Дата:
Сообщение: How create an index on a timespamp col!