Name

.schema — Display SQL creation commands for schema

Common Usage

.schema [table-pattern]

Description

The .schema command displays the SQL commands used to create the schema (tables, views, indexes, etc.). If no parameter is given, the CREATE command for every object in the main and temp databases will be displayed. A single parameter can also be given, in which case only those objects associated with tables that match the LIKE pattern will be displayed.

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.