From: Andrey <bp@profit.net.ua>
To: pgsql-sql@postgresql.org
Subject: maintain number in variable
Date: Mon, 3 Jul 2000 21:14:42 +0300
Message-ID: <004201bfe51a$91903240$0101010a@x206> (raw)
Can I maintain id in variable such as:
CREATE FUNCTION function1() RETURNS int4
AS '
$var = select nextval(''shipment_gen'');
select $var;
'
LANGUAGE 'sql'
Andrey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: bp@profit.net.ua
Subject: Re: maintain number in variable
In-Reply-To: <004201bfe51a$91903240$0101010a@x206>
References: <004201bfe51a$91903240$0101010a@x206>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox