User variables like: SET @a='test'; - Mailing list pgsql-novice

From Christian Hofmann
Subject User variables like: SET @a='test';
Date
Msg-id 00b701c61857$86762970$9000a8c0@taschenrechner
Whole thread Raw
List pgsql-novice
Hello,

based on my other question I am trying to find solutions on myself.
I am searching for something like user variables:

SET @a='test';

As desriped here:

http://dev.mysql.com/doc/refman/5.0/en/variables.html

How can I do that in postgresql?

Is there a workaround?

Maybe creating a new configuration variable and using that all the time
based on the session?
How can I do that?

Thank you,

Christian



pgsql-novice by date:

Previous
From: "Christian Hofmann"
Date:
Subject: Setting a variable for current session (set, define or something) for auditing
Next
From: Ângelo Marcos Rigo
Date:
Subject: Re: How to set a Default Value