From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: variables outside of functions |
Date: | 2006-02-04 21:09:57 |
Message-ID: | 20060204210957.GA23797@KanotixBox |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Ketema J. Harris <ketema(at)ketema(dot)net> schrieb:
> Is it possible to write a block of sql statements that utilize variables?
> I can use variables easy enough inside of a function, but I was attempting
You can use languages like plperl to use variables within one session.
(persistent variables, a little example with german comments are here:
http://a-kretschmer.de/pgsql/pgsql-4.php, function prev_saldo)
HTH, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2006-02-04 21:13:25 | Re: Select date & time |
Previous Message | Paul Smith | 2006-02-04 19:35:24 | Re: createdb: could not connect to database |