variables in psql

From: Keala Jacobs <keala_jacobs(at)itd(dot)sterling(dot)com>
To: pgsql-hackers(at)hub(dot)org
Subject: variables in psql
Date: 1999-06-01 20:14:05
Message-ID: 37543F0D.2CD0E09D@itd.sterling.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Does postgres support the use of variables as in the example below?

update table1 set column1=(at)variable
where column2='text4column2'
and @variable=(select column3 from table2 where column4='text4column4');

If not, how do I execute a statement like this in postgres?

Attachment Content-Type Size
keala_jacobs.vcf text/x-vcard 341 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-06-01 21:26:09 Re: [HACKERS] variables in psql
Previous Message Peter T Mount 1999-06-01 20:06:06 Re: [HACKERS] Re: [SQL] Column name's length