Subject | Re: Miltiple rows in singleton select |
---|---|
Author | Santiago |
Post date | 2003-10-30T23:02:32Z |
Thank you Artur
--- In firebird-support@yahoogroups.com, "Artur Anjos" <artur@a...>
wrote:
--- In firebird-support@yahoogroups.com, "Artur Anjos" <artur@a...>
wrote:
> Hi Santiago,your
>
> > I get the following error:
> > "multiple rows in singleton select"
>
> This means that Fb expects a singleton as result (only one row) but
> query results are more than one row.change to
>
> You will need to change the query, or use a FOR cycle. A small
> your coede will be:
>
>
> /*
> > FOR
> > select pro_PAI_NOMBRE,
> > FAC_NUMERO,
> > FAC_FECHA,
> > PRO_NOMBRE,
> > FAC_TOTALIMPORTE from factura_v
> > order by pro_pai_nombre, FAC_FECHA
> > into :pro_PAI_NOMBRE,
> > :FAC_NUMERO,
> > :FAC_FECHA,
> > :pro_nombre,
> > :FAC_TOTALIMPORTE /* I have removed this here -
> ; */
> > /* This will make your results return to calling */
> > DO SUSPEND;
>
> Artur