From: | "Shavonne Marietta Wijesinghe" <shavonne(dot)marietta(at)studioform(dot)it> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Uppercase and Lowercase |
Date: | 2007-02-19 15:22:06 |
Message-ID: | 001001c75439$b7749b50$1102a8c0@dream |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello
In my PostgreSQL database i have records inserted in Uppercase.
For example: VIA SENATO
What i want is to change them to "Via Senato". Ofcourse i'm looking for a automatico way. I wrote this code update registro1 set pa_indirizzo = upper(substr(pa_indirizzo, 1, 1)) && lower(substr(pa_indirizzo, 2, length(pa_indirizzo) - 1)) But it doesn't work.
When i run only update registro1 set pa_indirizzo = upper(substr(pa_indirizzo, 1, 1)) It gets me the first letter and when i run
update registro1 set pa_indirizzo = lower(substr(pa_indirizzo, 2, length(pa_indirizzo) - 1)) I get from the second letter to the last. But when i join them them don't work..
Anyone got any idea??
Thanks
Shavonne Wijesinghe
From | Date | Subject | |
---|---|---|---|
Next Message | Bart Degryse | 2007-02-19 15:25:48 | Re: Uppercase and Lowercase |
Previous Message | S.F. Lee | 2007-02-18 13:58:15 | unsubscribe |