INITCAP
説明
パラメータに含まれる単語の最初の文字を大文字にし、残りの文字を小文字に変換します。単語とは、英数字以外の文字で区切られた英数字の連続です。
構文
INITCAP ( <str> )
パラメータ
| Parameter | デスクリプション |
|---|---|
<str> | 変換対象の文字列 |
Return Value
パラメータ<str>内の単語の最初の文字を大文字にし、残りの文字を小文字にした結果。
Example
SELECT INITCAP('hello hello.,HELLO123HELlo')
+---------------------------------------+
| initcap('hello hello.,HELLO123HELlo') |
+---------------------------------------+
| Hello Hello.,hello123hello |
+---------------------------------------+