# CREATE TABLE

A statement that defines a new table, its columns, and its constraints.

## What is **CREATE TABLE** in a relational database?

**CREATE TABLE** — A statement that defines a new table, its columns, and its constraints.

```sql
CREATE TABLE customer (
    customer_id INTEGER PRIMARY KEY,
    email CHARACTER VARYING(255) NOT NULL,
    status CHARACTER VARYING(20) DEFAULT 'active'
);
```

Level: Apprentice · [More Database terms at this level](https://www.ask-codey.com/glossary/subjects/database/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/create-table
