Re: convert result to uppercase

From: Mark Gibson <gibsonm(at)cromwell(dot)co(dot)uk>
To: Victor Spång Arthursson <scooterbabe(at)home(dot)se>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: convert result to uppercase
Date: 2004-04-20 16:20:21
Message-ID: 40854DC5.8050308@cromwell.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Victor Spång Arthursson wrote:

> How do i convert a result to upper/lowercase?
>
> I'ld like to do the following:
>
> SELECT UPPER(lang) from languages;
>
> and get for example "uk" as "UK", "dk" AS "DK" and so on…

You can do exactly that, upper() and lower() functions exist:
http://www.postgresql.org/docs/7.4/interactive/functions-string.html

--
Mark Gibson <gibsonm |AT| cromwell |DOT| co |DOT| uk>
Web Developer & Database Admin
Cromwell Tools Ltd.
Leicester, England.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bob.Henkel 2004-04-20 16:22:52 Re: Postgresql system requirements to support large
Previous Message Mark Gibson 2004-04-20 16:17:15 Re: Can I reset the lower bound of an array.