pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: how to concatenate in PostgreSQL
Date: Sat, 24 Mar 2012 12:57:14 +0100
Message-ID: <20120324115714.GA25468@tux> (raw)
In-Reply-To: <1332589439.54415.YahooMailNeo@web121601.mail.ne1.yahoo.com>
References: <1332589439.54415.YahooMailNeo@web121601.mail.ne1.yahoo.com>

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°



view thread (6+ messages)  latest in thread

Message-ID: <20120324115714.GA25468@tux>
Permalink:  ../20120324115714.GA25468@tux/
Also on:    postgresql.org/message-id/20120324115714.GA25468@tux

 · 

reply

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: akretschmer@spamfence.net
  Subject: Re: how to concatenate in PostgreSQL
  In-Reply-To: <20120324115714.GA25468@tux>

* 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