pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emi Lu <emilu@encs.concordia.ca>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Update value to "the first character is capital and the rest is small"
Date: Mon, 13 Mar 2006 17:31:28 -0500
Message-ID: <4415F2C0.3040707@encs.concordia.ca> (raw)

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




view thread (5+ messages)  latest in thread

Message-ID: <4415F2C0.3040707@encs.concordia.ca>
Permalink:  ../4415F2C0.3040707@encs.concordia.ca/
Also on:    postgresql.org/message-id/4415F2C0.3040707@encs.concordia.ca

 · 

reply

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: emilu@encs.concordia.ca, pgsql-general@postgresql.org
  Subject: Re: Update value to "the first character is capital and the rest is small"
  In-Reply-To: <4415F2C0.3040707@encs.concordia.ca>

* 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