今天发现sqlite数据库的怪问题,大家遇到过吗?



  • QSqlQuery查询一条记录明显是没有这条记录的,但是query.record().count()返回值为1,再调用query.first()是返回是false。sql语句如下:
    select id,name from tmp_use where id = 99;
    这条sql语句用sqlite管理工具绝对是查不出记录的。奇了怪了!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.