Re: CONCAT function equivalent

From: Korry Douglas <korry(dot)douglas(at)enterprisedb(dot)com>
To: Fabian Santiago <fabian(dot)santiago(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: CONCAT function equivalent
Date: 2014-05-17 20:04:14
Message-ID: 5377C0BE.3050102@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Fabian Santiago 2014-05-17 21:18:48 Re: CONCAT function equivalent
Previous Message David G Johnston 2014-05-17 15:03:29 Re: CONCAT function equivalent