---
title: "ZEICHEN"
description: "Die SQL-Funktion SIGN gibt das Vorzeichen einer Zahl zur\u00FCck, wobei -1 f\u00FCr eine negative Zahl, 1 f\u00FCr eine positive Zahl und 0 f\u00FCr null steht."
language: de
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/de/docs/invantive-universalsql/grammar/sql-functions/sign
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/sign
updated: 2026-12-04T14:25:35Z
license: https://documentation.invantive.eu/de/
---

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

## Anwendung
1 eine positive Zahl und 0-1 die Null darstellt`SIGN`.

Siehe auch [[ABS]].

Parameter:
- Eingabe (`decimal`): Eine Zahl.

Gibt das Zeichen als `int32` zurück.

## Beispiele
Das folgende Beispiel ermittelt das Vorzeichen einer negativen Zahl, einer Null und einer positiven Zahl:
```sql
select sign(-0.65565) negative
,      sign(0) neutral
,      sign(+20) positive

-------- -------- --------
-1       0        1
```
Das folgende Beispiel gibt `null` zurück, da die Eingabe `null` lautet:
```sql
select sign(null)

--------

```

