Thread: NOVICE : using variables

NOVICE : using variables

From
"DAVANNE Eric - NTR ( EDavanne@nanterre.sema.slb.com )"
Date:
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