NOVICE : using variables

From: "DAVANNE Eric - NTR ( EDavanne(at)nanterre(dot)sema(dot)slb(dot)com )" <EDavanne(at)nanterre(dot)sema(dot)slb(dot)com>
To: "'pgsql-novice(at)postgresql(dot)org'" <pgsql-novice(at)postgresql(dot)org>
Subject: NOVICE : using variables
Date: 2003-06-16 13:27:15
Message-ID: 0D740BCE2280D411A1E00001029E601802F49057@NTRMES04
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

I am new on POSTGRES.
I am trying to translate SYBASE into POSTGRES.

How can i use variables ?

With SYBASE, it's like this :

declare @var1 integer
select @var1 = 2

select *
from table_name
where column1 = @var1

thanks

Browse pgsql-novice by date

  From Date Subject
Next Message Don Patou 2003-06-16 20:29:51 using a dumped database file
Previous Message Bruno Wolff III 2003-06-16 11:49:52 Re: How to integrate postgresql to a c application.............