1.查看数据库所有表名 select name from sqlite_master where type='table' order by name; 2.查看某一张表的所有字段 PRAGMA table_info([xxx]);xxx为你要查询表的表名