---
title: "CAMEL"
description: "The CAMEL SQL function converts an identifier to camel case."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/camel
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/camel
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

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

## Purpose
The `CAMEL` SQL function converts an identifier to camel case. Uppercase characters remain uppercase, and underscores (`_`) are eaten and replaced by the uppercase of the next character.

Parameters:
- Input (`varchar2`): the identifier that will be converted to camel case.

Returns: An identifier converted to camel case as `varchar2`.

## Examples
The following example camel cases the identifier `set_project_code`:
```sql
select camel('set_project_code')

--------------------
SetProjectCode
```
The following example camel cases the identifier `abcd`, uppercasing only the first character:
```sql
select camel('abcd')

--------
Abcd
```