INITCAP(x) is a string function that changes a character string so that the first character of a word is an uppercase letter and the rest of the word consists of lowercase characters. When this happens, different words are split by one or more characters from the 7-bit ASCII character set that are not letters or digits (commas, blanks, or colons, for example).
|
Result of the Function INITCAP(x) |
x is a NULL value |
Example table: customer
Standardizing the notation for names
SELECT name, INITCAP(name) new_name
FROM customer WHERE firstname IS NULL
NAME |
NEW_NAME |
DATASOFT |
Datasoft |
TOOLware |
TOOLware |