Updated on 2026-11-06 GMT+08:00

initcap

The initcap function is used to convert a text string to a form where the first letter of each word is capitalized and the remaining letters are in lowercase.

Syntax

initcap(string A)  

Parameters

Parameter

Mandatory

Type

Description

A

Yes

STRING

The text string to be converted.

Return Values

Returns a STRING type string where the first letter of each word is capitalized and the rest are in lowercase.

Example Code

Returns Fli Sql.

SELECT initcap("fLI sql");