Update value to "the first character is capital and the rest is small" - Mailing list pgsql-sql

From Emi Lu
Subject Update value to "the first character is capital and the rest is small"
Date
Msg-id 4415F2C0.3040707@encs.concordia.ca
Whole thread Raw
Responses Re: Update value to "the first character is capital and the rest is small"  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: [GENERAL] Update value to "the first character is capital and  (Emi Lu <emilu@encs.concordia.ca>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: "Daniel Caune"
Date:
Subject: Re: connectby documentation
Next
From: Alvaro Herrera
Date:
Subject: Re: Update value to "the first character is capital and the rest is small"