using vars in scripts

From: "pablo sebastian rodriguez" <psrodriguez(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: using vars in scripts
Date: 2006-06-24 00:37:03
Message-ID: cb75972f0606231737m6d959268jf0993db5fb82f323@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

hi,

i know this is silly, but i can't find the way...

with mssql i can do this:

declare @my_var varchar(20) ;
set @my_var = 'something' ;
select @my_var ;

with mysql it's even easier:

set @my_var = 'something' ;
select @my_var ;

but, with postgre ? i don't know how to do that...

Browse pgsql-novice by date

  From Date Subject
Next Message Volkan YAZICI 2006-06-24 11:45:33 Re: libpq Describe Extension [WAS: Bytea and perl]
Previous Message operationsengineer1 2006-06-24 00:03:50 Re: Copy Data Question