sql - How to list the tables in an SQLite database file that was opened with ATTACH? -
what sql can used list tables, , rows within tables in sqlite database file - once have attached attach
command on sqlite 3 command line tool?
the .tables
, , .schema
"helper" functions don't attached databases: query sqlite_master
table "main" database. consequently, if used
attach some_file.db my_db;
then need do
select name my_db.sqlite_master type='table';
note temporary tables don't show .tables
either: have list sqlite_temp_master
that:
select name sqlite_temp_master type='table';
Comments
Post a Comment