Is it possible to declare a variable in postgres query ?

I have a query like this ..
@a =select sal from empmaster where empid=10;
@a=@a+1000;
select @a;

This query runs in sql server.
is it possible in postgres or any other alternate solutions for this.