[Qt-interest] Why the sql sentence can't be exec in QSqlQuery?

Scott Aron Bloom Scott.Bloom at sabgroup.com
Sun Jun 14 20:21:26 CEST 2009


> Assuming that you have accurately pasted your code into your email,
> then you are missing spaces before FROM, INNER and ON. Also, you do
> not need the terminating semi-colon (I'm not sure whether this is an
> error).
> 
> Regards,
> 
> Stephen Jackson

Oh, My God!

Thank you, all!

---------------------
To help in the future, you can call query.lastError() to get the QSqlQuery.. Depending on the driver being used, the error can be very helpful...  SQL Lite.. not so much :)

Scott




More information about the Qt-interest-old mailing list