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 ATTACH command on the sqlite3 command line tool?
What SQL can be used to list the tables, and the rows within those
Share
The
.tables, and.schema‘helper’ functions don’t look into ATTACHed databases: they just query theSQLITE_MASTERtable for the ‘main’ database. Consequently, if you usedthen you need to do
Note that temporary tables don’t show up with
.tableseither: you have to listsqlite_temp_masterfor that: