DECLARE Y SET

From: "Dilm E(dot)I(dot)R(dot)L" <i(dot)dilm(at)yahoo(dot)es>
To: PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: DECLARE Y SET
Date: 2009-06-10 04:07:36
Message-ID: 356439.92260.qm@web28103.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

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

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Espartano 2009-06-10 04:13:07 Re: DECLARE Y SET
Previous Message Franz Marin 2009-06-09 20:48:40 RE: dblink