Re: Tablas Temporales!

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Sonia Malave <smalave(at)hidrobolivar(dot)com(dot)ve>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Tablas Temporales!
Date: 2007-06-28 16:01:34
Message-ID: 20070628160134.GA15884@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Sonia Malave wrote:

> Entiendo, pero me surge otra dudita, si yo hago:
> --
> ---> Inserta en la Tabla Detalle Prefactura
> --
> begin
> EXECUTE
> 'INSERT INTO
> DETALLE_PREFACTURA
> (ID_DETALLE,
> CONCEPTO,
> MONTO_CONCEPTO,
> NRO_PREFACTURA,
> TIPO_OPERACION,
> MON_TARIFA,
> CANTIDAD,
> MET_CUB_MIN)
> SELECT
> mIdDetalle,
> mNomConDetalle,
> CAST(mMonDetalle AS NUMERIC(15,2)),
> v_mNumPrefactura as xNumPrefactura,
> '0' as xTipOperacion,
> CAST(mMonTarifa AS NUMERIC(15,2)),
> CAST(mConContratado AS NUMERIC(15,2)),
> mMetCubMin
> FROM
> tt_MMONDETALLE
> WHERE
> mMonDetalle <> *0'*;
> EXCEPTION
> WHEN OTHERS
> THEN
> SWV_err := -1;
> end;
>
>
> Me da un error despues del 0', que estoy haciendo mal?.

Por eso te dije que usaras $s$ y no '.

--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
"I must say, I am absolutely impressed with what pgsql's implementation of
VALUES allows me to do. It's kind of ridiculous how much "work" goes away in
my code. Too bad I can't do this at work (Oracle 8/9)." (Tom Allison)
http://archives.postgresql.org/pgsql-general/2007-06/msg00016.php

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message jlcambero 2007-06-28 17:10:11 Re: Conectar postgresql con sqlserver o "copiar" modelo de sqls
Previous Message José Ruiz aguilera 2007-06-28 15:43:20 Re: Conectar postgresql con sqlserver o "copiar" modelo de sqls