Re: Ayuda con Update + Select

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "David Acevedo Salazar" <dgacevedo(at)yahoo(dot)es>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Ayuda con Update + Select
Date: 2007-06-27 05:10:30
Message-ID: c2d9e70e0706262210v6822787foc9a53e4939abc327@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 6/26/07, David Acevedo Salazar <dgacevedo(at)yahoo(dot)es> wrote:
>
> AND b.Year = l_Ppto_Venta.YearName)
> WHERE (I_IsImported<>'Y' OR I_IsImported IS NULL)
> AND I_ErrorMsg IS NULL;
>
[...]

> ' AND b.Year = o.YearName) ' ||
> ' WHERE COALESCE(I_IsImported, ''Y'') = ''Y'' ' ||
> ' AND I_ErrorMsg IS NULL ';
> EXECUTE l_sql;
>
>

si te das cuenta en una sentencia usas l_Ppto_Venta.YearName mientras
que en la otra usas o.YearName, no se si es lo que causa tu error (me
da pereza crear tablas, llenarlas con datos y ejecutar las sentencias
fuera y dentro de una función. Si nos das un script con eso y que de
la falla que menciones, estaria dispuesto a investigar un poco mas)

--
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaime Casanova 2007-06-27 05:17:50 Re: Problemas dos funciones en postgres (Creación de tablas dinámicamente)
Previous Message Ruben Guinez 2007-06-27 04:51:34 Re: problema instalacion postgresql 8.1 en windows vista