From: Rehan Saleem <pk_rehan@yahoo.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: how to concatenate in PostgreSQL
Date: Sat, 24 Mar 2012 04:43:59 -0700 (PDT)
Message-ID: <1332589439.54415.YahooMailNeo@web121601.mail.ne1.yahoo.com> (raw)
hi ,
how can we concatinate these lines and execute sql command
setsql ='select user,username,
firstname '
set sql +=' lastname, cardno from table1where userid='+ 5
exec(sqi)
where 5 is the userid from table1
thanks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pk_rehan@yahoo.com
Subject: Re: how to concatenate in PostgreSQL
In-Reply-To: <1332589439.54415.YahooMailNeo@web121601.mail.ne1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox