initcap

description

Syntax

VARCHAR initcap(VARCHAR str)

Convert the first letter of each word to upper case and the rest to lower case. Words are sequences of alphanumeric characters separated by non-alphanumeric characters.

example

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

keywords

  1. INITCAP