Capitalizing First Letter of Every Word

From: "Brian T(dot) Allen" <brian(at)gzmarketing(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Capitalizing First Letter of Every Word
Date: 2001-06-26 22:56:48
Message-ID: 001201c0fe93$47ec9af0$2718b3cf@picard
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi *,

I have a database of products, and the client entered everything in all caps. While there is no intelligent way to do change everything to what it should be, changing the first letter of every word to uppercase and everything else to lowercase would at least look better (except for the occasional acroynym).

Is there a function to do that? I think I can handle everything except breaking the whole column up into individual words... I know how I would do it in PHP (and I may have to resort to that), but would prefer to do it in the db.

Any suggestions?

Thanks,
Brian

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thalis A. Kalfigopoulos 2001-06-26 23:01:16 Re: Function problem -- how do I drop this function?
Previous Message Corey Minter 2001-06-26 22:55:50 Re: PostgreSQL: YMMV?