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

前端 未结 17 2253
被撕碎了的回忆
被撕碎了的回忆 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:06

    The ".schema" commando will list available tables and their rows, by showing you the statement used to create said tables:

    sqlite> create table_a (id int, a int, b int);
    sqlite> .schema table_a
    CREATE TABLE table_a (id int, a int, b int);
    

提交回复
热议问题