maintain number in variable

From: "Andrey" <bp(at)profit(dot)net(dot)ua>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: maintain number in variable
Date: 2000-07-03 18:14:42
Message-ID: 004201bfe51a$91903240$0101010a@x206
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Can I maintain id in variable such as:
CREATE FUNCTION function1() RETURNS int4
AS '
$var = select nextval(''shipment_gen'');
select $var;
'
LANGUAGE 'sql'

Andrey

Browse pgsql-sql by date

  From Date Subject
Next Message Mitch Vincent 2000-07-03 19:46:27 Re: case insensitive search
Previous Message Thomas Lockhart 2000-07-03 18:11:51 Re: Need Help With Dates.