摘要: sqlite下能通过sqlite_master获取指定数据库的表信息和表结构但是通过sqlite_master不能获取表字段的信息如果需要获取指定表字段的所有信息可以使用如下语法:1 PRAGMA table_info('tablename')如下图:例如(Qt下):QSqlQuery query;query.prepare(" PRAGMA table_info('tableview_data')");if(query.exec()){ while(query.next()){ this->xl_debug(query.value(2 阅读全文
posted @ 2014-02-08 10:20 justwake 阅读(13953) 评论(0) 推荐(0) 编辑