Skip site navigation (1) Skip section navigation (2)

Re: Static Variables in PL/PGSQL

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Static Variables in PL/PGSQL
Date: 2005-12-21 06:03:28
Message-ID: 20051221060328.GA19943@webserv.wug-glas.de (view raw or flat)
Thread:
Lists: pgsql-novice
am  14.12.2005, um 16:30:34 -0500 mailte Michael Dengler folgendes:
> Hi,
> 
> Is here a way to use static variables in PL/PGSQL?
> 
> I have a recursive PL/PGSQL function and need to execute a code only on the 
> first iteration of the function (I need to be able to count the function 
> iterations).
> 
> Any help?

A table?


HTH, Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    === 

In response to

pgsql-novice by date

Next:From: Devrim GUNDUZDate: 2005-12-21 06:22:16
Subject: Re: Postgresql v 8.0.1-3 problems
Previous:From: Michael GlaesemannDate: 2005-12-21 05:32:34
Subject: Re: how do i add a number of days to now()?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group