How to list the tables in a SQLite database file that was opened with ATTACH?

前端 未结 17 2236
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 11:33

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

17条回答
  •  清酒与你
    2020-11-22 12:30

    Via a union all, combine all tables into one list.

    select name
    from sqlite_master 
    where type='table'
    
    union all 
    
    select name 
    from sqlite_temp_master 
    where type='table'
    

提交回复
热议问题