最近 为什么总是碰到 恶心的问题!看来要去补上一挂了
一段非常 复杂的Sql,大概如下
select distinct x from tableA with(nolock) inner join tableB on tableA.keya = tableB.keyb
where .. .. .. . . .. . . . . . . . . . .
script 完全正确,直接在mssql client执行完全正确,这里的到的查询结果只有一个
但是在程序中,用QSqlQuery 始终得不到查询结果
db.isValid() == true query.isValid() == true
lastError 没有
可能是什么原因导致的呢