有一个initcap()函数,如果你的意思是大写每个关键字的第一个字母和小写以下字符:
update foo set bar = initcap(bar)
Else结合substring()和upper():
update foo set bar = upper(substring(bar from 1 for 1)) || substring(bar from 2 for length(bar))
http://www.postgresql.org/docs/current/static/functions-string.html