From: Christoph Haller <ch@rodos.fzk.de>
To: bhuvansql@myrealbox.com
Cc: pgsql-sql@postgresql.org
Subject: Re: 'next' or similar in plpgsql
Date: Thu, 24 Oct 2002 09:56:46 +0200
Message-ID: <3DB7A7BE.F3F80ACF@rodos.fzk.de> (raw)
>
> In perl we have 'next' function to skip rest of the statements in the
loop
> and to start with next iteration. In plpgsql, do we have something
> similar? How do we skip rest of the statements in a loop in plpgsql?
>
The only statement which can be used in a probably tricky way seems to
be
EXIT [ label ] [ WHEN expression ];
What you are really looking for is something like the C statement
"continue;"
I'm quite surprised this is not available in plpgsql.
Regards, Christoph
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: ch@rodos.fzk.de, bhuvansql@myrealbox.com
Subject: Re: 'next' or similar in plpgsql
In-Reply-To: <3DB7A7BE.F3F80ACF@rodos.fzk.de>
* 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