Re: Substitute a Character

Поиск
Список
Период
Сортировка
От Chris Mair
Тема Re: Substitute a Character
Дата
Msg-id 1157562877.25934.1.camel@ultra.home.lan
обсуждение исходный текст
Ответ на Substitute a Character  (Judith <jaltamirano@correolux.com.mx>)
Список pgsql-sql
>     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???
> 
>     Thanks in advanced!!!

You should look at these functions:
http://www.postgresql.org/docs/8.1/static/functions-string.html

This for example might work for you:
select translate('A98526', 'A', '0');

Bye, Chris.


-- 

Chris Mair
http://www.1006.org



В списке pgsql-sql по дате отправления:

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Substitute a Character
Следующее
От: Daryl Richter
Дата:
Сообщение: Re: Substitute a Character