sqlite数据库查询表名

来源:互联网 发布:手机淘宝怎么找店小二 编辑:程序博客网 时间:2024/04/29 18:51

找了很久才找到sqlite下的 在数据中查询所有表名字段名的方法 代码亲测可用哦




查询所有表名 select name from sqlite_master where type='table' order by name



查询表中所有字段信息 (PS. pragma必须大写  )PRAGMA table_info(tbl_name)


select * from sqlite_master where type="table"
0 0