pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robins Tharakan <robins.tharakan@comodo.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: how to concatenate in PostgreSQL
Date: Mon, 26 Mar 2012 15:45:19 +0530
Message-ID: <4F7041B7.2040108@comodo.com> (raw)
In-Reply-To: <1332589439.54415.YahooMailNeo@web121601.mail.ne1.yahoo.com>
References: <1332589439.54415.YahooMailNeo@web121601.mail.ne1.yahoo.com>

Hi,

Probably you're looking for these set of articles.

http://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL#Microsoft_SQL_Server

The second article (by Ethan) has good small hints for things such as 
the query that you ask in this thread, when migrating from MSSQL to 
PostgreSQL.

--
Robins

On 03/24/2012 05:13 PM, Rehan Saleem wrote:
> hi ,
> how can we concatinate these lines and execute sql command
> setsql = 'select user,username, firstname '
> set sql += ' lastname, cardno from table1 where userid=' + 5
> exec(sqi)
> where 5 is the userid from table1
> thanks
>

Attachments:

  [application/pkcs7-signature] smime.p7s (5.0K, ../4F7041B7.2040108@comodo.com/2-smime.p7s)
  download

view thread (6+ messages)  latest in thread

Message-ID: <4F7041B7.2040108@comodo.com>
Permalink:  ../4F7041B7.2040108@comodo.com/
Also on:    postgresql.org/message-id/4F7041B7.2040108@comodo.com

 · 

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: robins.tharakan@comodo.com
  Subject: Re: how to concatenate in PostgreSQL
  In-Reply-To: <4F7041B7.2040108@comodo.com>

* 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