Re: Uppercase and Lowercase
От | Shavonne Marietta Wijesinghe |
---|---|
Тема | Re: Uppercase and Lowercase |
Дата | |
Msg-id | 002701c7543c$2a888730$1102a8c0@dream обсуждение исходный текст |
Ответ на | Uppercase and Lowercase ("Shavonne Marietta Wijesinghe" <shavonne.marietta@studioform.it>) |
Ответы |
Re: Uppercase and Lowercase
Re: Uppercase and Lowercase |
Список | pgsql-sql |
Hey thanks Bart. it worked ;)
but sadly what it does is changes "VIA SENATO" in to "Via senato" but what i need is "Via Senato"
Anyoneeeeeee??
Shavonne Wijesinghe
----- Original Message -----
----- Original Message -----
From: Bart DegryseSent: Monday, February 19, 2007 4:25 PMSubject: Re: [SQL] Uppercase and LowercaseReplace && by ||
>>> "Shavonne Marietta Wijesinghe" <shavonne.marietta@studioform.it> 2007-02-19 16:22 >>>HelloIn my PostgreSQL database i have records inserted in Uppercase.For example: VIA SENATOWhat 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 runupdate 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??ThanksShavonne Wijesinghe
В списке pgsql-sql по дате отправления: