How to get list of all the tables in sqlite programmatically

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

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

相关标签:
3条回答
  • 2021-02-08 00:53

    try this :

    SELECT * FROM sqlite_master where type='table'
    
    0 讨论(0)
  • 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?

    0 讨论(0)
  • 2021-02-08 01:08

    worked for me

        SELECT * FROM sqlite_master where type='table'
    
    0 讨论(0)
提交回复
热议问题