Re: how to concatenate in PostgreSQL

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: how to concatenate in PostgreSQL
Date: 2012-03-26 16:08:33
Message-ID: 4F709481.30503@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 03/24/2012 04:43 AM, Rehan Saleem wrote:
> hi ,
> how can we concatinate these lines and execute sql command
In what? Psql? A PL/pgSQL function. C/Java/PHP/Python/Perl/Erlang/Lua?
> setsql = 'select user,username, firstname '
> set sql += ' lastname, cardno from table1 where userid=' + 5
> exec(sqi)
> where 5 is the userid from table1
> thanks
>
Cheers,
Steve

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Crawford 2012-03-27 16:12:47 Re: how to concatenate in PostgreSQL
Previous Message Robins Tharakan 2012-03-26 10:25:39 Re: MS-SQL to PostgreSql