From: Steve Crawford <scrawford@pinpointresearch.com>
To: ryanne cruz <ryanne.cruz@up.edu.ph>
To: \\\"pgsql-php@postgresql.org\\\" <pgsql-php@postgresql.org>
Subject: Re: underscore
Date: Thu, 30 Jan 2003 08:11:24 -0800
Message-ID: <20030130161124.5C4A2103EF@polaris.pinpointresearch.com> (raw)
In-Reply-To: <1043903378.3e38b392b4422@mail.up.edu.ph>
References: <1043903378.3e38b392b4422@mail.up.edu.ph>
try translate():
select translate('Mary Margaret Smith',' ','_');
translate
---------------------
Mary_Margaret_Smith
Cheers,
Steve
On Wednesday 29 January 2003 9:09 pm, ryanne cruz wrote:
> hi list!
>
> i have a column wherein a lot of entries has 2 or more names int it. these
> are separated by spaces. an example is: "John Doe", "Mary Margaret Smith".
> i need to replace the spaces with an underscore. any idea how to do this?
>
> thanks!
>
> ryanne
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: scrawford@pinpointresearch.com, ryanne.cruz@up.edu.ph
Subject: Re: underscore
In-Reply-To: <20030130161124.5C4A2103EF@polaris.pinpointresearch.com>
References: <1043903378.3e38b392b4422@mail.up.edu.ph> <20030130161124.5C4A2103EF@polaris.pinpointresearch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox