From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | "Walker, Jed S" <Jed_Walker(at)cable(dot)comcast(dot)com> |
Cc: | "'pgsql-novice(at)postgresql(dot)org'" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: plpgsql question - simple I would have thought |
Date: | 2005-04-02 00:38:10 |
Message-ID: | 20050402003809.GA8762@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Fri, Apr 01, 2005 at 02:52:20PM -0700, Walker, Jed S wrote:
>
> \echo raise notice attempt
> begin
> raise notice 'hello';
> end;
>
> \echo select into attempt
> declare
> i_int integer;
> begin
> select count(1) into i_int from vrnsys_version;
> end;
PL/pgSQL is for writing user-defined functions, so you need some
CREATE FUNCTION statements.
http://www.postgresql.org/docs/7.3/interactive/plpgsql.html
> Welcome to psql 7.3.2, the PostgreSQL interactive terminal.
That version is pretty old -- if you must use 7.3 then at least
consider upgrading to 7.3.9. See the Release Notes for a summary
of bug fixes and other changes:
http://www.postgresql.org/docs/7.3/interactive/release.html
If you're not committed to using 7.3 then you might want to check
out 8.0.2 when it's released (which should be Real Soon Now).
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2005-04-02 01:41:14 | Re: how to ignore accents? |
Previous Message | Morgan Kita | 2005-04-01 22:26:51 | Re: Variable length custom data types help |