Subject | RE: [ib-support] Re: problem with "for" in procedure |
---|---|
Author | Thomas Steinmaurer |
Post date | 2003-05-15T18:38:26Z |
> The QTD is the output. and NOTA a local variable.What does "success" mean? Do you get a wrong result, maybe
> Why this not sucess?
> My table DIARIO_PROVA_ALUNO has severals registers.
>
>
> begin
> QTD = 0;
> FOR SELECT NOTA_PROVA FROM DIARIO_PROVA_ALUNO INTO :NOTA
> DO
> BEGIN
> QTD = QTD+NOTA;
> END
> suspend;
> end
NULL? If so, is NOTA_PROVA allowed to hold NULL? Once, NOTA
is NULL the iterated summation is NULL.
Thomas.