[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1

真tm坑.
QString execStr = QString("SELECT * FROM [Log] WHERE [username]=\"yyy\" ");
查询项用双引号在ACCESS里通过,在其他数据库如SQlite能通过,在代码里就报错[标题],

解决:改为单引号
QString execStr = QString("SELECT * FROM [Log] WHERE [username]='yyy'");

上一篇:ansible Failed to connect to the host via ssh: no such identity: /root/.ssh/id_rsa.bak


下一篇:用Django实现Video页面分类查询