qt已成功连接到sqlite数据库,数据库里面有data表,为什么显示不存在data表,读不到数据?
http://www.oschina.net/question/878586_225008
bool isTableExist = \query.exec(QString("select count(*) from sqlite_master where type='table' and name='%1'").arg(strTableName))); //关键的判断这样判断下表是不是存在