2011-03-17 78 views
4

如何以編程方式獲取sqlite中所有可用表的列表。如何以編程方式獲取sqlite中所有表的列表

+0

@MaheshBabu:Jhaliya的答案根據我是正確的。所以請嘗試一下。 – 2011-03-17 05:25:22

+0

[如何列出使用ATTACH打開的SQLite數據庫文件中的表?]的可能重複(http://stackoverflow.com/questions/82875/how-to-list-the-tables-in-an-sqlite -database-file-that-was-opened-with-attach) – KeksArmee 2017-01-02 04:14:50

回答

14

試試這個:

SELECT * FROM sqlite_master where type='table' 
2

工作對我來說

SELECT * FROM sqlite_master where type='table' 
相關問題