Subject Re: Problem with parameters of FOR SELECT cycle
Author tomkrej
> Yes, of course. In the first version, you are changing the value of
the variable id_zaz as soon as the first match is found for it....so
the inner loop has nowhere to go after that because the dependency
that was passed from the outer loop is lost.
>
> And - even without this logic problem, you must be careful to
initialise variables in PSQL code....just as you would in any coding
environment....especially around looping structures.
>
> ./heLen
>

OK, no problem, I only expected that server execute the select first,
and then only go through this selection without checking the select
statment again.

Tom