Skip to content

Data definition statements (DDL)

View as Markdown

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 Tables, their columns and constraints, and the vertex and edge tables of a graph.
CREATE, ALTER and DROP INDEX Indexes, including unique, filtered, function-based and invisible indexes.
CREATE, ALTER, DROP and RENAME VIEW Views (named queries).
CREATE, ALTER and DROP SERIAL Serials (sequence number generators).

Related statements are described elsewhere: partitioning, triggers, users and permissions, stored procedures and class inheritance.