pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emi Lu <emilu@encs.concordia.ca>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: [GENERAL] Update value to "the first character is capital
Date: Mon, 13 Mar 2006 17:55:54 -0500
Message-ID: <4415F87A.9040506@encs.concordia.ca> (raw)
In-Reply-To: <20060313223604.GF18322@surnet.cl>
References: <4415F2C0.3040707@encs.concordia.ca>
	<20060313223604.GF18322@surnet.cl>

I saw it from the docs as well. Thank you Alvaro :)



Alvaro Herrera wrote:

>Emi Lu wrote:
>  
>
>>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" ?
>>    
>>
>
>I don't know about plpgsql codes, but there is a function initcap() that
>you can use for that.
>
>alvherre=# select initcap('GU & WEI. NAN (CE SHI) & TOMMORROW');
>              initcap               
>------------------------------------
> Gu & Wei. Nan (Ce Shi) & Tommorrow
>(1 row)
>
>  
>




view thread (5+ messages)  latest in thread

Message-ID: <4415F87A.9040506@encs.concordia.ca>
Permalink:  ../4415F87A.9040506@encs.concordia.ca/
Also on:    postgresql.org/message-id/4415F87A.9040506@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, alvherre@commandprompt.com
  Subject: Re: [GENERAL] Update value to "the first character is capital
  In-Reply-To: <4415F87A.9040506@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