Re: how to concatenate in PostgreSQL - Mailing list pgsql-sql

From Steve Crawford
Subject Re: how to concatenate in PostgreSQL
Date
Msg-id 4F709481.30503@pinpointresearch.com
Whole thread Raw
In response to how to concatenate in PostgreSQL  (Rehan Saleem <pk_rehan@yahoo.com>)
List 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?
 
       set sql = '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

pgsql-sql by date:

Previous
From: Robins Tharakan
Date:
Subject: Re: MS-SQL to PostgreSql
Next
From: Steve Crawford
Date:
Subject: Re: how to concatenate in PostgreSQL