INITCAP
INITCAP(string)

Changes the first letter of each word in a string to uppercase and all other letters to lowercase.

Example

SQL> SELECT INITCAP('good MORNING, dave') FROM dual;

INITCAP('GOODMORNI
------------------
Good Morning, Dave

Get Oracle SQL: the Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.