---
title: "INITCAP"
description: "SQL-funksjonen INITCAP endrer f\u00F8rste tegn i hvert ord til store bokstaver, og alle andre tegn til sm\u00E5 bokstaver."
language: nb
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/nb/docs/invantive-universalsql/grammar/sql-functions/initcap
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/initcap
updated: 2026-12-04T13:44:25Z
license: https://documentation.invantive.eu/nb/
---

## Syntaks
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> INITCAP[INITCAP]:::quoted
    INITCAP --> End((END))
```

## Formål
SQL-funksjonen `INITCAP` endrer første tegn i hvert ord til store bokstaver, og alle andre tegn til små bokstaver.

Parametere:
- Inndata (`varchar2`): Tekst som skal behandles.

Returnerer: inndataene med første bokstav i hvert ord som stor bokstav, som `varchar2`.

## Eksempler
Følgende eksempel endrer bruken av store og små bokstaver i `aap noot mies`:
```sql
select initcap('aap noot mies')

----------------
Aap Noot Mies
```
Følgende eksempel endrer bruken av store og små bokstaver i `JOHN DOE`:
```sql
select initcap('JOHN DOE')

----------------
John Doe
```
Følgende eksempel endrer bruken av store og små bokstaver i `'s-Hertogenbosch`:
```sql
select initcap('''s-Hertogenbosch')

----------------
'S-Hertogenbosch
```

