Re: pl/pgsql

From: Joel Burton <jburton(at)scw(dot)org>
To: Juan <jcorta(at)tribctas(dot)gba(dot)gov(dot)ar>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pl/pgsql
Date: 2001-04-23 13:52:16
Message-ID: Pine.LNX.4.21.0104230950230.23833-100000@olympus.scw.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)scw(dot)org>
Director of Information Systems, Support Center of Washington

In response to

  • pl/pgsql at 2001-04-23 13:44:08 from Juan

Browse pgsql-general by date

  From Date Subject
Next Message Lark 2001-04-23 13:58:12 Can store binary data?
Previous Message Juan 2001-04-23 13:44:08 pl/pgsql