Re: Loop in loop

From: George Weaver <gweaver(at)shaw(dot)ca>
To: Moritz Bayer <moritz(dot)bayer(at)googlemail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Loop in loop
Date: 2007-01-22 15:26:20
Message-ID: 008801c73e39$abaabd60$6400a8c0@Dell4500
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


----Original Message From: Moritz Bayer

>But still the question:
>Is it possible to put a loop into a loop? Or doesn't it make sense at all?

I'm not sure what the OP was about, but Yes, it it possible to put a loop into a loop. See:

http://www.postgresql.org/docs/8.2/static/plpgsql-control-structures.html

particularly the references to [ <<label>> ] and EXIT [ label ] and CONTINUE [ label ] for nested loops.

Regards,
George

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2007-01-22 15:30:09 Re: [HACKERS] Autovacuum Improvements
Previous Message Moritz Bayer 2007-01-22 15:14:07 Re: Loop in loop