From: | Francisco Leovey <fleovey(at)yahoo(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org, JORGE MALDONADO <jorgemal1960(at)gmail(dot)com> |
Subject: | Re: Converting to uppercase |
Date: | 2011-05-05 18:12:43 |
Message-ID: | 777906.83919.qm@web39321.mail.mud.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
A simple ggogle search gives the answer
http://www.postgresql.org/docs/9.0/static/functions-string.html
--- On Thu, 5/5/11, JORGE MALDONADO <jorgemal1960(at)gmail(dot)com> wrote:
From: JORGE MALDONADO <jorgemal1960(at)gmail(dot)com>
Subject: [NOVICE] Converting to uppercase
To: pgsql-novice(at)postgresql(dot)org
Date: Thursday, May 5, 2011, 3:06 PM
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
From | Date | Subject | |
---|---|---|---|
Next Message | Lieu, Peter | 2011-05-05 19:04:21 | Re: Looking for table in PostregSQL that contains Operating System and Processor information |
Previous Message | JORGE MALDONADO | 2011-05-05 18:06:09 | Converting to uppercase |