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

From Andreas Kretschmer
Subject Re: how to concatenate in PostgreSQL
Date
Msg-id 20120324115714.GA25468@tux
Whole thread Raw
In response to how to concatenate in PostgreSQL  (Rehan Saleem <pk_rehan@yahoo.com>)
Responses Re: how to concatenate in PostgreSQL
List pgsql-sql
Rehan Saleem <pk_rehan@yahoo.com> wrote:

> hi ,
> how can we concatinate these lines and execute sql command
>  
>        set sql = 'select user,username, firstname '
>       set sql += ' lastname, cardno from table1 where userid=' + 5

sql = sql || ' bla fasel';

|| is the concat - Operator.



Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


pgsql-sql by date:

Previous
From: Rehan Saleem
Date:
Subject: how to concatenate in PostgreSQL
Next
From: Allan Kamau
Date:
Subject: Re: how to concatenate in PostgreSQL