Re: Simple method to format a string?

Поиск
Список
Период
Сортировка
От Ben Chobot
Тема Re: Simple method to format a string?
Дата
Msg-id A9E5D1E6-EF82-4F80-A469-3900D4C17807@silentmedia.com
обсуждение исходный текст
Ответ на Simple method to format a string?  (Emi Lu <emilu@encs.concordia.ca>)
Список pgsql-general
On Jun 20, 2012, at 7:43 AM, Emi Lu wrote:

> Good morning,
>
> Is there a simply method in psql to format a string?
>
> For example, adding a space to every three consecutive letters:
>
> abcdefgh -> *** *** ***
>
> Thanks a lot!
> Emi

I'm unaware of such a function (it seems like a generic format() function's arguments would be so complex as to be
almostunusable) but you can make use of locales to do some formatting for you. See
http://www.postgresql.org/docs/9.1/static/locale.html.

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: efficiency of wildcards at both ends
Следующее
От: Norberto Dellê
Дата:
Сообщение: How to determine to which version of PostgreSQL a patch was applied