Re: Update value to "the first character is capital and

Поиск
Список
Период
Сортировка
От Emi Lu
Тема Re: Update value to "the first character is capital and
Дата
Msg-id 4415F430.7060503@encs.concordia.ca
обсуждение исходный текст
Ответ на Update value to "the first character is capital and the rest is small"  (Emi Lu <emilu@encs.concordia.ca>)
Список pgsql-general
I got the answer from the docs. |initcap|(text)

thanks anyway,
Ying

> Hello all,
>
> Does anyone have available plpgsql codes to update all capital letters
> in a column to "the first character is capital and the rest is small" ?
>
> For example, in tableA(id, description)
> 001,  'ZHANG ZHE XIN'
> =>    'Zhang Zhe Xin'
> 002,  'LIU, WEI-HUAI'
> =>    'Liu, Wei-Huai'
> 003,  'GU & WEI. NAN (CE SHI) & TOMMORROW'      =>   'Gu & Wei. Nan
> (Ce Shi) & Tommorrow'
>
> Thanks a lot!
> Ying
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [SQL] Update value to "the first character is capital and the rest is small"
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Wisconsin Circuit Court Access (WCCA) on PostgreSQL