Re: [GENERAL] Update value to "the first character is capital and

2006-03-14 Thread John Sidney-Woollett
Have you tried the initcap function? select initcap('abcd efgh'); initcap --- Abcd Efgh John Emi Lu wrote: Hello all, Does anyone have available plpgsql codes to update all capital letters in a column to "the first character is capital and the rest is small" ? For example, in

Re: [GENERAL] Update value to "the first character is capital and

2006-03-13 Thread Emi Lu
I got the answer from the docs. |initcap|(text) thanks anyway, Ying Hello all, Does anyone have available plpgsql codes to update all capital letters in a column to "the first character is capital and the rest is small" ? For example, in tableA(id, description) 001, 'ZHANG ZHE XIN'

[GENERAL] Update value to "the first character is capital and the rest is small"

2006-03-13 Thread Emi Lu
Hello all, Does anyone have available plpgsql codes to update all capital letters in a column to "the first character is capital and the rest is small" ? For example, in tableA(id, description) 001, 'ZHANG ZHE XIN' => 'Zhang Zhe Xin' 002, 'LIU