> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baenninger.me/llms.txt
> Use this file to discover all available pages before exploring further.

# DEFAULT

Der `DEFAULT`-Constraint wird verwendet, um einen Standardwert zu setzen, falls keiner spezifiziert wird.

```sql theme={null}
CREATE TABLE Orders (
    OrderId INTEGER NOT NULL,
    OrderNumber INTEGER NOT NULL,
    OrderDate date DEFAULT CURRENT_DATE()
);
```

```sql theme={null}
ALTER TABLE Persons
ALTER City SET DEFAULT 'New York';
```

```sql theme={null}
ALTER TABLE Persons
ALTER City DROP DEFAULT;
```
