Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 64EB5475BD7 for ; Thu, 30 Jan 2003 11:11:20 -0500 (EST) Received: from polaris.pinpointresearch.com (66-7-238-176.cust.telepacific.net [66.7.238.176]) by postgresql.org (Postfix) with ESMTP id D071C475B8E for ; Thu, 30 Jan 2003 11:11:19 -0500 (EST) Received: from there (66-7-238-179.cust.telepacific.net [66.7.238.179]) by polaris.pinpointresearch.com (Postfix) with SMTP id 5C4A2103EF; Thu, 30 Jan 2003 08:11:24 -0800 (PST) Content-Type: text/plain; charset="iso-8859-1" From: Steve Crawford Organization: Pinpoint Research To: ryanne cruz , "\\\"pgsql-php@postgresql.org\\\"" Subject: Re: underscore Date: Thu, 30 Jan 2003 08:11:24 -0800 X-Mailer: KMail [version 1.3.1] References: <1043903378.3e38b392b4422@mail.up.edu.ph> In-Reply-To: <1043903378.3e38b392b4422@mail.up.edu.ph> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20030130161124.5C4A2103EF@polaris.pinpointresearch.com> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/94 X-Sequence-Number: 1839 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