What SQL can be used to list the tables, and the rows within those tables in an SQLite database file - once I have attached it with the
The easiest way to do this is to open the database directly and use the .dump
command, rather than attaching it after invoking the SQLite 3 shell tool.
So... (assume your OS command line prompt is $) instead of $sqlite3
:
sqlite3> ATTACH database.sqlite as "attached"
From your OS command line, open the database directly:
$sqlite3 database.sqlite
sqlite3> .dump