NOVICE : using variables - Mailing list pgsql-novice

From DAVANNE Eric - NTR ( EDavanne@nanterre.sema.slb.com )
Subject NOVICE : using variables
Date
Msg-id 0D740BCE2280D411A1E00001029E601802F49057@NTRMES04
Whole thread Raw
List 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

pgsql-novice by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: How to integrate postgresql to a c application.............
Next
From: "Benjamin Wragg"
Date:
Subject: Understanding the explain statement