select replace(initcap('hi ben'),' ') from dual;
REPLA
-----
HiBen
这只是将每个单词的第一个字符大写,然后将空格替换为空。
如果第一个字符是数字,它显然不起作用:
select replace(initcap('go 2stack overflow'),' ') from dual;
REPLACE(INITCAP(
----------------
Go2stackOverflow
于 2012-09-04T15:15:31.943 回答
This answer is useful
2
这不是我对 camelCase 的理解
select substr(lower('Camel Case means the first char should be lower cased'),1,1)||substr(replace(initcap('Camel Case means the first char should be lower cased'),' '),2) from dual;