Re: CONCAT function - Mailing list pgsql-general

From Richard Huxton
Subject Re: CONCAT function
Date
Msg-id 200309161334.19516.dev@archonet.com
Whole thread Raw
In response to CONCAT function  ("Marek Lewczuk" <newsy@lewczuk.com>)
Responses Re: CONCAT function
List pgsql-general
On Tuesday 16 September 2003 13:45, Marek Lewczuk wrote:
> Hello,
> As I'm in the middle of the migration process form mysql to pg I found
> that there is no CONCAT function which is available in mysql. Can
> anybody tell me how to implement this function using plPERL or plPGSQL
> language ?

You want to use the || operator, e.g. 'hello' || ' ' || 'world'

Full details of operators and functions can be found in the "data types"
section of the documentation.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Francois Suter
Date:
Subject: Re: 4D to PostgreSQL tools
Next
From: "Marek Lewczuk"
Date:
Subject: Re: CONCAT function