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

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





view thread (5+ messages)  latest in thread

Message-ID: <4415F430.7060503@encs.concordia.ca>
Permalink:  ../4415F430.7060503@encs.concordia.ca/
Also on:    postgresql.org/message-id/4415F430.7060503@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
  In-Reply-To: <4415F430.7060503@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