Re: declare variable in postgresql - Mailing list pgsql-general

From Merlin Moncure
Subject Re: declare variable in postgresql
Date
Msg-id BANLkTik10p-VxOcW13mHAgqy6fcK2HHYDg@mail.gmail.com
Whole thread Raw
In response to declare variable in postgresql  (Jignesh Ramavat <ramavat.jignesh@gmail.com>)
Responses Re: declare variable in postgresql  (Brar Piening <brar@gmx.de>)
List pgsql-general
On Fri, Jun 24, 2011 at 3:41 AM, Jignesh Ramavat
<ramavat.jignesh@gmail.com> wrote:
> Hello,
>
> need help,
>
> Declare @TypeTransactionID As int";
>
> Select @TypeTransactionID=ID from TypeTransaction Where TypeTransactionCode
> = 'TxnBackupInc' ";
>
> these is in sqlserver. If i want to do same in postgresql then ???

http://www.postgresql.org/docs/9.0/static/plpgsql.html
http://www.postgresql.org/docs/9.0/static/plpgsql-declarations.html#PLPGSQL-DECLARATION-PARAMETERS

merlin

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: declare variable in postgresql
Next
From: Brar Piening
Date:
Subject: Re: declare variable in postgresql