From: Daryl Richter <daryl@eddl.us>
To: Judith <jaltamirano@correolux.com.mx>
To: pgsql-sql@postgresql.org
Subject: Re: Substitute a Character
Date: Wed, 06 Sep 2006 16:20:37 -0400
Message-ID: <C124A5D5.50E8%daryl@eddl.us> (raw)
In-Reply-To: <44FEFCFA.8010501@correolux.com.mx>
On 9/6/06 12:53 PM, "Judith" <jaltamirano@correolux.com.mx> wrote:
> Hello everybody!!
>
> I have a field type text with folios like this: A98526
>
> but I want to change de A for a 0 like this: 098526, exists a way to
> do this in a query???
select translate( 'A98526', 'A', '0' );
translate
------------
098526
1 record(s) selected [Fetch MetaData: 1/ms] [Fetch Data: 0/ms]
[Executed: 9/6/06 4:18:44 PM EDT ] [Execution: 99/ms]
>
> Thanks in advanced!!!
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
--
Daryl
Email *my = [ daryl at: @"eddl" dot: @"us" ];
Weblog *blog = @²http://itsallsemantics.com²;
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: daryl@eddl.us, jaltamirano@correolux.com.mx
Subject: Re: Substitute a Character
In-Reply-To: <C124A5D5.50E8%daryl@eddl.us>
* 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