Skip to main content
Create and manage tables using DDL operations.

Create Table

Basic Table

Data Types

With Size

With Constraints

Constraints are added after the type using colons:

Multiple Constraints

Complete Example

Drop Table

Alter Table

Add Column

Drop Column

Rename Column

Modify Column Type

Rename Table

MongoDB Collections

For MongoDB, use COLLECTION instead of TABLE:

Next Steps

Views

Create virtual tables

Indexes

Optimize query performance