This article is written about how to use the Oracle/PLSQL INITCAP function with syntax and examples.
Description
The Oracle/PLSQL INITCAP function sets the first character in each word to uppercase and the rest to lowercase.
Syntax
The syntax for the INITCAP function in Oracle/PLSQL is:
INITCAP( string1 )
Parameters or Arguments
string1
The string argument whose first character in each word will be converted to uppercase and all remaining characters converted to lowercase.
Returns
The INITCAP function returns a string value.
Applies To
The INITCAP function can be used in the following versions of Oracle/PLSQL:
Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
Example
Let’s look at some Oracle INITCAP function examples and explore how to use the INITCAP function in Oracle/PLSQL.
For example:
INITCAP('tech on the net');
Result: 'Tech On The Net'
INITCAP('GEORGE BURNS');
Result: 'George Burns'
Leave a Review