Re: [GENERAL] Update value to "the first character is capital

From: Emi Lu <emilu(at)encs(dot)concordia(dot)ca>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [GENERAL] Update value to "the first character is capital
Date: 2006-03-13 22:55:54
Message-ID: 4415F87A.9040506@encs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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)
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message sconeek 2006-03-13 23:28:06 catch SELECT statement return
Previous Message Scott Marlowe 2006-03-13 22:41:47 Re: Wisconsin Circuit Court Access (WCCA) on PostgreSQL

Browse pgsql-sql by date

  From Date Subject
Next Message Daniel Caune 2006-03-13 23:02:12 Re: connectby documentation
Previous Message Michael Fuhr 2006-03-13 22:53:54 Re: connectby documentation