↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / String Functions And Operators

Converts the first letter of each word to upper case and the rest to lower case.

Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20

Signatures & examples

initcap ( text ) → text
Converts 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.
initcap('hi THOMAS') → Hi Thomas
Version history 7
  1. 18 → 19 changed
  2. 12 → 13 changed
  3. 8.4 → 9.0 changed
  4. 8.1 → 8.2 changed
  5. 7.4 → 8.0 changed
  6. 7.3 → 7.4 changed
  7. 7.2 → 7.3 changed

Definition snapshot: b7bd9cda · English manual source