Re: how to concatenate in PostgreSQL

From: Robins Tharakan <robins(dot)tharakan(at)comodo(dot)com>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how to concatenate in PostgreSQL
Date: 2012-03-26 10:15:19
Message-ID: 4F7041B7.2040108@comodo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Robins Tharakan 2012-03-26 10:25:39 Re: MS-SQL to PostgreSql
Previous Message Robins Tharakan 2012-03-26 10:03:26 Re: MS-SQL to PostgreSql