Re: how to concatenate in PostgreSQL

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: how to concatenate in PostgreSQL
Date: 2012-03-24 11:57:14
Message-ID: 20120324115714.GA25468@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Rehan Saleem <pk_rehan(at)yahoo(dot)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°

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Allan Kamau 2012-03-24 13:42:59 Re: how to concatenate in PostgreSQL
Previous Message Rehan Saleem 2012-03-24 11:43:59 how to concatenate in PostgreSQL