Thread: Possible To Modify Part of String in Certain Rows?

Possible To Modify Part of String in Certain Rows?

From
Hunter Hillegas
Date:
Is there any reasonable PGSQL query that could do something like this:

Find all the releases from the releases table. For each release, do what is
basically a find and replace on a column? Each column contains slightly
different data and so the find and replace is not a constant. There needs to
be some 'variable' in there.

Am I making any sense?

Thanks,
Hunter



Re: Possible To Modify Part of String in Certain Rows?

From
"Joshua D. Drake"
Date:
Hello,

You could do it with a function in plPHP, plPython or plTCL fairly easily.

J

Hunter Hillegas wrote:
> Is there any reasonable PGSQL query that could do something like this:
>
> Find all the releases from the releases table. For each release, do what is
> basically a find and replace on a column? Each column contains slightly
> different data and so the find and replace is not a constant. There needs to
> be some 'variable' in there.
>
> Am I making any sense?
>
> Thanks,
> Hunter
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly


--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com
Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL

Attachment