Re: String manipulation in plpgsql

From: Joe Conway <mail(at)joeconway(dot)com>
To: Rod Kreisler <rod(at)23net(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: String manipulation in plpgsql
Date: 2003-03-09 00:24:06
Message-ID: 3E6A89A6.5090703@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Rod Kreisler wrote:
> Is there a way to do string manipulation in plpgsql, or should I just use
> plperl? It's just been SO long since I've used perl, trying to avoid it....
>

You can use any of the existing string functions, string concatenation,
etc. See:

http://developer.postgresql.org/docs/postgres/functions-string.html
and
http://developer.postgresql.org/docs/postgres/plpgsql-statements.html

as a start. Anything complex is probably a lot easier in plperl (or
pltcl or plpython) though.

HTH,

Joe

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Rod Kreisler 2003-03-09 00:34:25 Re: String manipulation in plpgsql
Previous Message Joe Conway 2003-03-09 00:18:38 Re: Stored procedure - change columns in a table that is