Skip site navigation (1) Skip section navigation (2)

concatenate and use as field

From: Alain Roger <raf(dot)news(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: concatenate and use as field
Date: 2009-03-29 10:21:33
Message-ID: 75645bbb0903290321t17e4edafm76b0f10300715ac1@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
Hi,

i have a character varying variable and i concatenate with some other
variable, using the '||' operator.
the result of this concatenation should be the name of a column in my table.

however i don't know how to tell that this new concatenated string is a
column name.
how to do it ?
thanks.

-- 
Alain
-----------------------------------------------------------
Windows XP x64 SP2 / Fedora 10 KDE 4.2
PostgreSQL 8.3.5 / MS SQL server 2005
Apache 2.2.10
PHP 5.2.6
C# 2005-2008

Responses

pgsql-general by date

Next:From: Eugenio ModestiDate: 2009-03-29 10:26:54
Subject: Re: problem with locale :
Previous:From: Vibhor KumarDate: 2009-03-29 09:48:37
Subject: Re: problem with locale :

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group