Commands I use in sqlite
Because I don’t use sqlite often enough to remember:
-
.tables— list tables. -
.schema table— schema for a table. -
.schema— output the whole schema. -
.mode column— to get nice output fromSELECT. -
.headers on— include column names in output fromSELECT. -
.q— quit.
And:
$ cat ~/.sqliterc
.mode box --wrap 30
(I have the same issue remembering psql commands, too.)