sqlite数据库查询表名
2016-02-19 13:37
211 查看
找了很久才找到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"
查询所有表名 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"
相关文章推荐
- Redis操作命令总结
- Redis操作命令总结
- Redis-benchmark命令测试Redis性能
- Oracle笔试题
- [转]x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- PLSQL数组学习(二)
- MongoDB索引使用
- oralce/plsql数组的几种定义
- oracle 11g不能导出空表的解决方法(转)
- MYSQL 重命名表
- MySQL数据库的优化-运维架构师必会高薪技能,笔者近六年来一线城市工作实战经验
- CentOS 6.7下php5+安装redis扩展组件
- PL/SQL教程之八:触发器
- PL/SQL教程之七:程序包
- PL/SQL教程之六:过程与函数
- oracle DG参数详解
- Oracle、Mysql、SQLServer数据分页查询
- Redis和Memcached的区别详解
- Redis和Memcached的区别详解
- CentOS 6.6下Redis安装配置记录