---
title: "Data definition statements (DDL)"
description: "Overview of the CoraDB statements that define database objects: tables, vertex and edge tables, indexes, views and serials."
url: "https://www.coradb.ai/manual/sql/schema.html"
markdown_url: "https://www.coradb.ai/manual/markdown/sql/schema.md"
product: "CoraDB"
version: "1.0"
keywords: "ddl, data definition language, create table, create vertex table, create edge table, create index, create view, create serial, coradb schema"
---

# Data definition statements (DDL)

Data definition statements create, change and remove the objects that hold and organize data. In CoraDB, they are part of the transaction: a `CREATE TABLE` or `ALTER TABLE` can be rolled back like an `INSERT`.

| Statements | Objects |
|---|---|
| [CREATE, ALTER, DROP and RENAME TABLE](https://www.coradb.ai/manual/sql/schema/table_stmt.html) | Tables, their columns and constraints, and the [vertex and edge tables](https://www.coradb.ai/manual/sql/schema/table_stmt.html#graph-tables-vertex-and-edge) of a graph. |
| [CREATE, ALTER and DROP INDEX](https://www.coradb.ai/manual/sql/schema/index_stmt.html) | Indexes, including unique, filtered, function-based and invisible indexes. |
| [CREATE, ALTER, DROP and RENAME VIEW](https://www.coradb.ai/manual/sql/schema/view_stmt.html) | Views (named queries). |
| [CREATE, ALTER and DROP SERIAL](https://www.coradb.ai/manual/sql/schema/serial_stmt.html) | Serials (sequence number generators). |

Related statements are described elsewhere: [partitioning](https://www.coradb.ai/manual/sql/partition.html), [triggers](https://www.coradb.ai/manual/sql/trigger.html), [users and permissions](https://www.coradb.ai/manual/sql/authorization.html), [stored procedures](https://www.coradb.ai/manual/sql/jsp.html) and [class inheritance](https://www.coradb.ai/manual/sql/oodb.html).
