Re: pl/pgsql

Поиск
Список
Период
Сортировка
От Joel Burton
Тема Re: pl/pgsql
Дата
Msg-id Pine.LNX.4.21.0104230950230.23833-100000@olympus.scw.org
обсуждение исходный текст
Ответ на pl/pgsql  ("Juan" <jcorta@tribctas.gba.gov.ar>)
Список pgsql-general
On Mon, 23 Apr 2001, Juan wrote:

> does anyone know where i found documentation about pl/pgsql ?

Documentation is in the Developer's Manual, at www.postgresql.org.

> i have a variable typed date and i need to get day month and year, how can i
> do that?
> e.g:
>
> function test(date)
>   day = day($1);
>   month = month ($1);
>   year = year($1);

You don't need pl/pgsql for this. There are features built-in to
PG for these:

http://postgresql.readysetnet.com/devel-corner/docs/user/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT


--
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington


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

Предыдущее
От: "Lark"
Дата:
Сообщение: Can store binary data?
Следующее
От: Nils Zonneveld
Дата:
Сообщение: Re: install pgSQL 7.1