Sometimes you just want to see the basic structure of a table.
In SQLite, there are several ways to retrieve information about a given table. In particular, here are four options:
- The
PRAGMA table_info()statement - The
PRAGMA table_xinfo()statement (for virtual tables) - The
.schemacommand - The
sqlite_mastertable
Examples of each method are below.