using vars in scripts - Mailing list pgsql-novice

From pablo sebastian rodriguez
Subject using vars in scripts
Date
Msg-id cb75972f0606231737m6d959268jf0993db5fb82f323@mail.gmail.com
Whole thread Raw
List 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...


pgsql-novice by date:

Previous
From:
Date:
Subject: Re: Copy Data Question
Next
From: Michael Fuhr
Date:
Subject: Re: really simple example of c-code and pqlib library