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: (view raw, whole thread or download thread mbox)
Lists: pgsql-general

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 ?

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


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-2017 The PostgreSQL Global Development Group