Skip site navigation (1) Skip section navigation (2)

Converting to uppercase

From: JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Converting to uppercase
Date: 2011-05-05 18:06:09
Message-ID: BANLkTikedNfusOt4h8ygqocMNjyqmMwBnw@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
I have a script that inserts country names in a table but such names are in
lowercase except the first letter. This is an example of what I have:

INSERT INTO chartsclub.cat_paises (pss_nombre) VALUES ('Afganistan');
INSERT INTO chartsclub.cat_paises (pss_nombre) VALUES ('Africa del Sur');
INSERT INTO chartsclub.cat_paises (pss_nombre) VALUES ('Albania');
INSERT INTO chartsclub.cat_paises (pss_nombre) VALUES ('Alemania');
INSERT INTO chartsclub.cat_paises (pss_nombre) VALUES ('Andorra');
INSERT INTO chartsclub.cat_paises (pss_nombre) VALUES ('Angola');
INSERT INTO chartsclub.cat_paises (pss_nombre) VALUES ('Antigua y Barbuda');
INSERT INTO chartsclub.cat_paises (pss_nombre) VALUES ('Antillas
Holandesas');
Is there a function that I can include in the INSERT statement in order to
convert the country name to uppercase?

Respectfully,
Jorge Maldonado

Responses

pgsql-novice by date

Next:From: Francisco LeoveyDate: 2011-05-05 18:12:43
Subject: Re: Converting to uppercase
Previous:From: Willy-Bas LoosDate: 2011-05-05 15:28:10
Subject: random I/O

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group