initcap

description

Syntax

VARCHAR initcap(VARCHAR str)

将参数中包含的单词首字母大写,其余字母转为小写。单词是由非字母数字字符分隔的字母数字字符序列。

example

1. mysql> select initcap('hello hello.,HELLO123HELlo');
2. +---------------------------------------+
3. | initcap('hello hello.,HELLO123HELlo') |
4. +---------------------------------------+
5. | Hello Hello.,Hello123hello            |
6. +---------------------------------------+

keywords

1. INITCAP