Converting to uppercase
Converting to uppercase
От:
JORGE MALDONADO <jorgemal1960@gmail.com>
Дата:
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');
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
Re: Converting to uppercase
От:
Francisco Leovey <fleovey@yahoo.com>
Дата:
A simple ggogle search gives the answer --- On Thu, 5/5/11, JORGE MALDONADO <jorgemal1960@gmail.com> wrote:
|
Re: Converting to uppercase
От:
Jayadevan M <Jayadevan.Maymala@ibsplc.com>
Дата:
> Is there a function that I can include in the INSERT statement in
> order to convert the country name to uppercase?
>
http://www.postgresql.org/docs/9.0/static/functions-string.html
upper(string)
DISCLAIMER:
"The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect."
> order to convert the country name to uppercase?
>
http://www.postgresql.org/docs/9.0/static/functions-string.html
upper(string)
DISCLAIMER:
"The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect."