INITCAP

INITCAP 函数转换字符串的大小写,以便每个单词以大写字母开头,所有后续字母都以小写字母开头。

SELECT INITCAP('HELLO mr macdonald!') AS NEW FROM dual;

输出

NEWHello Mr Macdonald!