1.sqlite 查出所有表名

select name from sqlite_master where type='table'

2.sqlite 查出表的所有字段

PRAGMA table_info([表名])

原文链接
https://wangdongjie.com/sqlite-query-all-tables