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
.schema
command - The
sqlite_master
table
Examples of each method are below.
Continue reading