From: | Espartano <espartano(dot)mail(at)gmail(dot)com> |
---|---|
To: | "Dilm E(dot)I(dot)R(dot)L" <i(dot)dilm(at)yahoo(dot)es> |
Cc: | PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: DECLARE Y SET |
Date: | 2009-06-10 04:13:07 |
Message-ID: | d353bd50906092113r56ad85fdn8146e2dcc3b45ec@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
2009/6/9 Dilm E.I.R.L <i(dot)dilm(at)yahoo(dot)es>:
> Estimados, nuevamente yo, con una duda:
>
>
>
> En SQL Server 2000 (solo por dar un ejemplo de como usaba DECLARE y SET)
> hacia algo asi :
>
>
>
> DECLARE @mistring varchar(1000)
>
> SET @mistring='' /*inicializar variable*/
> SELECT @mistring = @mistring + ' ' + RTRIM(columna) from PruebaEmail
> /*concatenar*/
> SELECT @mistring
>
>
>
> Hay veces que deseo hacer pequeñas pruebas en postgres, hacer cosas
> similares a lo que hacia en SQL Server 2000,pero bueno intentando no doy con
> lo deseado.
>
>
>
> Espero me puedan seguir ayudando como siempre lo hacen
>
Hasta donde recuerdo creo que esto no es posible en PostgreSQL, al
menos no en lenguaje SQL, si quieres programar algo adicional al
estandar SQL tendrias que hacer uso de plpgsql.
--
"Linux is for people who hate Windows, BSD is for people who love UNIX".
"Documentation is like sex: when it is good, it is very, very good;
and when it is bad, it is better than nothing."
From | Date | Subject | |
---|---|---|---|
Next Message | Dilm E.I.R.L | 2009-06-10 04:22:54 | Re: DECLARE Y SET |
Previous Message | Dilm E.I.R.L | 2009-06-10 04:07:36 | DECLARE Y SET |