Re: CONCAT function equivalent - Mailing list pgsql-admin

From Korry Douglas
Subject Re: CONCAT function equivalent
Date
Msg-id 5377C0BE.3050102@enterprisedb.com
Whole thread Raw
In response to CONCAT function equivalent  (Fabian Santiago <fabian.santiago@gmail.com>)
Responses Re: CONCAT function equivalent
List pgsql-admin
Is there an equivalent command (string) for this example:

UPDATE domain SET settings=CONCAT(settings, 'default_language:', defaultlanguage, ';');

that works and accomplishes the same thing in postgresql v8.4? Thanks.

The concatenation operator is available in 8.4, is there some reason that won't work for you?
UPDATE domain SET settings = settings || 'default_language:' || defaultlanguage || ';';

-- Korry

pgsql-admin by date:

Previous
From: David G Johnston
Date:
Subject: Re: CONCAT function equivalent
Next
From: Fabian Santiago
Date:
Subject: Re: CONCAT function equivalent