How to get list of all the tables in sqlite programmatically

后端 未结 3 669
孤街浪徒
孤街浪徒 2021-02-08 00:10

How can I get the list of all the available tables in sqlite programmatically?

3条回答
  •  灰色年华
    2021-02-08 00:55

    Use the below sql statement to get list of all table in sqllite data base

    SELECT * FROM dbname.sqlite_master WHERE type='table';
    

    The same question asked before on StackOverFlow.

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

提交回复
热议问题