initcap

description

Syntax

VARCHAR initcap(VARCHAR str)

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

example

mysql> select initcap('hello hello.,HELLO123HELlo');
+---------------------------------------+
| initcap('hello hello.,HELLO123HELlo') |
+---------------------------------------+
| Hello Hello.,Hello123hello            |
+---------------------------------------+
作者:超级管理员  创建时间:2023-06-14 17:18
最后编辑:超级管理员  更新时间:2024-09-18 16:39